-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
fix: can't load module error when app is packaged #13283
fix: can't load module error when app is packaged #13283
Conversation
💖 Thanks for opening this pull request! 💖 We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix, OR prefix at least one of your commit messages. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
@jack-teng1 The tests are failing with |
039b074
to
efdf4f4
Compare
@MarshallOfSound I updated the spec to reflect the change in node.js. |
@jack-teng1 Can you please rebase your branch onto Just in case you need some help with Git =)
|
due to change in node.js(nodejs/node#17076) internalModuleReadFile has been renamed to internalModuleReadJSON, and in vendor/node/lib/internal/modules/cjs/loader.js it will call internalModuleReadJSON and result in can't read the package.json file.
node.js rename the internalModuleReadFile to internalModuleReadJSON change spec to reflect this change
09255c6
to
3044607
Compare
Thank you @alexeykuzmin, I have rebase the branch on to master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for the PR @jack-teng1!
Congrats on merging your first pull request! 🎉🎉🎉 |
@jack-teng1 Thank you! |
Due to change in node.js(nodejs/node#17076) internalModuleReadFile has been renamed to internalModuleReadJSON, and in vendor/node/lib/internal/modules/cjs/loader.js it will call internalModuleReadJSON and result in can't read the package.json file.
Fixes #13185.