-
Notifications
You must be signed in to change notification settings - Fork 115
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
object-assign: no such file or directory #207
Comments
As mentioned in the other issue, downgrading to 8.0.2 solves it, so it seems to be related to the addition of jspm support. |
I'm also experiencing this issue. I don't use HMR, but this occurs when running my CSS and JS gulp tasks in parallel. Running either task by itself works fine, but running them in parallel results in all sorts of module loading errors like this one. The errors are inconsistent from one run to the next, but it seems like postcss-import's jspm support is doing something that breaks module resolution for other code running in the same process. I can confirm that downgrading to 8.0.2 resolves the issue. |
object-assign is the first dependency used in the code. There is nothing wrong with it, and it's not actually missing, but the resolution of dependencies seems to happen at the root of the userland project - and node_modules is not considered. If I symlink object-assign from node_modules/ into the root project dir, then it's found and the next dependency fails. Not much to go on for now, sorry. I haven't even triaged whether the problem is within webpack/postcss/babel - just that the resolving issue doesn't happen with 8.1.0 and happens with 8.1.1/2 |
Puh, that looks like a though one. I am actually not sure where this is coming from. Especially the timing / race condition / parallel related comments make me wonder what is actually happen here. "object-assign" is not used by "pkg-resolve" at all. But as I understood it's not really related to this package but to some kind of setup of the environment (looking in the wrong paths). "pkg-resolve" uses both "jspm" and "npm" to resolve packages. Probably there is some issue that the npm resolver is not actually able to work in parallel with two different setups? We first have to identify were this error is thrown from. Anybody has some stack trace or reproducable code fragment? I can't see it here - even when running some tasks in parallel in Gulp. |
Same issue, verified to happen since |
/!\ postcss-loader version has been fixed to 8.0.2. see: - postcss/postcss-import#207 - babel/babel-loader#242
Same issue with 8.1.2, even if I just require in
Edit: downgrading to 8.1.0 works |
Same issue as @dominictobias here, simply including any version > 8.1.0 in my webpack borks everything. |
Build fails on `8.1.2`, down grade to `8.0.2` postcss/postcss-import#207
This is obviously a breaking change because of the changes to the webpack API. Smoke tests have been added to ensure it works in the most basic of cases. `postcss-import` is pinned to `8.1.0` because of a breaking bug with `webpack@2`. See: postcss/postcss-import#207.
This is obviously a breaking change because of the changes to the webpack API. Smoke tests have been added to ensure it works in the most basic of cases. `postcss-import` is pinned to `8.1.0` because of a breaking bug with `webpack@2`. See: postcss/postcss-import#207. Support for `[email protected]` is removed because `webpack@2` does not support it.
Still experiencing this issue... Any movement? |
Been sitting here, banging my head against a wall for 3 days before finding this. Was at Downgrading to |
I believe this is fixed by #243 on the v9 branch. |
@taion It should be. Have you confirmed that it is fixed? Will try to release it soon. See the milestone: https://github.com/postcss/postcss-import/milestone/1. |
I haven't, but the presence of that dep was the only problem, so there's bigger problems if that doesn't fix things. |
@taion If it isn't asking too much, would you mind installing that branch and confirming that this is fixed there? I'm not a webpack user and I'd hate to release v9 only to discover it doesn't fix this issue. |
Publishing npm pre-releases is free :p but I'll take a look |
Appears to work for me. |
Great, thanks! Going to leave this open until v9 is shipped to avoid dupes. |
Thanks for the fix look forward to unpinning the version :) |
I can confirm, the v9 branch does fix the problem
|
v9 is shipped! 🎉 You should no longer encounter this error with the latest version. |
Module build failed: Error: ENOENT: no such file or directory, open '/home/anoru/git/project/object-assign'
more details: babel/babel-loader#242
The text was updated successfully, but these errors were encountered: