-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Module imports not working #367
Comments
Please review the doc. |
var node = NodeJsRunTimeProvider.getRuntime();
node.getNodeModule(NodeModuleModule.class).setRequireRootDirectory(new File(JavetOSUtils.WORKING_DIRECTORY));
node.setV8ModuleResolver(new JavetBuiltInModuleResolver());
System.out.println(JavetOSUtils.WORKING_DIRECTORY);
node.getExecutor(output.getCode()).setModule(true).executeVoid();```
What am i doing wrong. |
|
i am using import React from "react" it is failing saying module not found but. const React = require("react") works |
READ THE DOC. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Javet i want to use module import but it is saying no module found but when i use require it pick the correct package from node_modules
The text was updated successfully, but these errors were encountered: