-
-
Notifications
You must be signed in to change notification settings - Fork 184
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 "ENOENT: no such file or directory, open '../../is-core-module/core.json" #297
Comments
The core.js import is deprecated; you should be using is-core-module directly. That said, I’ll see what i can do. |
Hmm looks like 7c26483 has never been published? |
It is code from library entry point (latest published version), webpack trying to process all imports here |
yeah, good call. 7c26483 is part of the v2 prerelease; v1 is managed on a separate branch. |
tbh tho I'm surprised webpack wouldn't be able to see the fs.readFileSync call and inline the file's contents. |
We have the same issue and we also use webpack. |
@oksankaa you're also bundling on the server? |
It is quite impossible) |
yes |
For us it's generating the following in webpack:
This obviously breaks because dirname won't take a number argument. |
@ljharb Do you intend to keep [email protected] using I'm currently maintaining |
@trentm tbh I'm not sure yet. Keeping it that way means the data will be out of date between releases of resolve, and avoiding that (deferring it to |
One option would be to have a release of diff --git a/package.json b/package.json
index 62bb065..078f73d 100644
--- a/package.json
+++ b/package.json
@@ -6,6 +6,7 @@
"sideEffects": false,
"exports": {
".": "./index.js",
+ "./core.json": "./core.json",
"./package.json": "./package.json"
},
"scripts": { then in var data = require('is-core-module/core.json'); However, I could understand if you don't want to do that (it adds API surface area to If/when you release a version of Thanks for maintaining these modules. |
You're exactly right, and I want very much not to add to the API surface area of
That said, I still need to figure out a fix for this in v1, and the current options, as you've accurately described, are:
and none of those options are pleasant. |
Hi all -- appreciate your thought on this issue. I see there hasn't been a lot of activity and wanted to see if there feels like a viable path forward for v1. Although v1.22.2 is currently marked as I'm curious if there's any appetite to publish out a For additional context, I'm hitting the problem from pulling in |
Yes, that seems like a reasonable thing to do given the length of time it’s taken to figure this out. I’m traveling right now, but will do that at the first opportunity. |
Maybe caused by eslint-plugin-import. There is a release with eslint-plugin-import about 5 days ago,and they bumped version of As it happens,eslint-plugin-import has no release from Apr until 5 days ago,so they didn’t receive bug report of |
Ah, thanks for the heads up on that,
Ah, thanks for the heads up on that 👍 In case anyone else lands here that is using Yarn... TIL you can use selective dependency resolutions to pin Also, appreciate the quick reply @ljharb! Still definitely interested in the |
…re-module` also" This reverts commit 122bb64. Fixes browserify#297.
v1.22.4 is published; this can now be closed. I still don't want to do inspect-js/is-core-module#14, but without that, I'm not sure how to keep |
Hello @ljharb!
Have this error in last
resolve
package version -ENOENT: no such file or directory, open '../../is-core-module/core.json
This change is breaking change for bundlers - 122bb64, because bundler can't process this require anymore.
Our case - we using
webpack
for server code (SSR application)May I ask you to revert this change?
The text was updated successfully, but these errors were encountered: