Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gives an error on load. #2

Open
artfabrique opened this issue Mar 14, 2019 · 2 comments
Open

Gives an error on load. #2

artfabrique opened this issue Mar 14, 2019 · 2 comments

Comments

@artfabrique
Copy link

artfabrique commented Mar 14, 2019

I'm trying to require it by:
const { getDocumentAsJSON } = require("xd-json-wrapper");
but it gives en error on module load:
Plugin Error: Module not found: "xd-json-wrapper". Parent module folder was: "/".

folder structure is
https://github.com/artfabrique/pxdtool

@artfabrique
Copy link
Author

@artfabrique
Copy link
Author

it works like that
const { getDocumentAsJSON } = require("./node_modules/xd-json-wrapper/index");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant