Skip to content

Importing JavaScript from other file/npm package throws error #170

Answered by caoccao
TheGreatViolet asked this question in Q&A
Discussion options

You must be logged in to vote

May I know which mode you are using?

V8 Mode

You need to register a module resolver via v8Runtime.setV8ModuleResolver(...). Please refer to this test suite for detail.

Node.js Mode

You need to follow some rules to make it work. Please refer to #148 for detail.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@caoccao
Comment options

@TheGreatViolet
Comment options

@caoccao
Comment options

@TheGreatViolet
Comment options

@caoccao
Comment options

Answer selected by TheGreatViolet
Comment options

You must be logged in to vote
1 reply
@caoccao
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants