-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug?]: Cannot find module 'esbuild' imported from ../ #5241
Comments
Seems we've forgotten to update the documentation; when using ESM you need to register the loader as well. node -r ./.pnp.cjs --loader ./.pnp.loader.mjs |
@merceyz There no file |
yarn config set pnpEnableEsmLoader true |
thank you, oh, sorry, yep, i able to fix by two way:
Using |
I'll keep this open since we need to update the documentation. |
@merceyz #5241 (comment) did not help. Only adding |
You also need to run an install after setting that config in your project. |
Yes, i know and still not worked as expected. But finally solution I'm did find, that's has been my goal. |
I also encountered this bug. Running the below commands was the only thing that worked for me. YMMV. yarn config set pnpEnableEsmLoader true
yarn install |
Self-service
Describe the bug
To reproduce
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: