Skip to content

MODULE_NOT_FOUND when specify --modules-folder on .yarnrc #1693

Answered by hkak03key
hkak03key asked this question in Q&A
Discussion options

You must be logged in to vote

I have read document and realized that .yarnrc is only specify yarn args.
And --modules-folder is not ts-node arg so it is obvious not to run.

So I have came up with giving node_modules path using env variable and this is run.

NODE_PATH=$MODULE_DIR yarn ts-node hello_world.ts

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@hkak03key
Comment options

@hkak03key
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by hkak03key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants