-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: C:\snapshot\node\tmp\pkg\cli\node_modules\rfc4648\lib\cjs\rfc4648.js require() of ES modules is not supported. #33
Comments
I recently released rfc4648 v1.5.3 to address a packaging issue: storybookjs/storybook#22542 Based on the timeline, it sounds like this release may have broken your project instead. If we can verify that the previous release still works for you (rfc4648 v1.5.2), I can take a look at what may have caused this. |
Thanks for the response @swansontec , but i am using rfc4648 version 1.3.0. Do you think it will still conflict with this? And the repo it resolves this dependency from is https://registry.yarnpkg.com/rfc4648/. |
Can i please get any help on this one ...tried different versions but still getting same. kind of stuck from long. |
when i check this, it gives
not sure why it picks up latest version of rfc4648 although its specified as 1.3.0 |
Oh, the |
As for the bug itself, Node.js seems to believe that the file Here is the mystery: why isn't Node.js reading this inner package.json file?
I cannot reproduce the issue on this end - the inner package.json file is indeed present, and it successfully switches Node.js into the right mode. |
If the file Unless there are somehow multiple copies of rfc4648 present in your node_modules folder, and we are looking at the wrong one. |
I will close this issue, since there are no updates. If somebody can provide additional details, I will happily re-open this and get it fixed. |
Hi i am using kubernetes/client-node (0.14.3) dependency in my project which internally uses rfc4648 version 1.3.0. Suddenly i have started getting following error while it was working fine for couple of weeks before. Can somebody please help me or guide me on this?
I am kind of stuck and not able to proceed further.
Error -
The text was updated successfully, but these errors were encountered: