-
Notifications
You must be signed in to change notification settings - Fork 138
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
Incorrect resolve attached to ember-source
. ModuleNotFoundError.
#849
Comments
I encountered the same issue. I created an issue with a minimal reproduction over in ember-source, not sure where this belongs to: |
Thanks for reporting. This is indeed the same issue as #817. We can probably do a fancier CompatAdapter for ember-source that would fix its own references to these packages without leaking rules that change everybody else's references to them. But ultimately ember-source needs to ship something that makes more sense: either stop bundling in these dependencies, or keep bundling them but import them via relative paths instead of expecting them to be resolvable by their original package names. |
@ef4 Thank you 🙏
Is this ^ being considerated at all? |
@ef4 is it the embroider/packages/compat/src/compat-adapters/ember-source.ts Lines 38 to 47 in fe30c4c
If you have an idea of what this fancier compat adapter would look like and can walk through the gist of it, I'd be up for trying to get the compat adapter working to resolve this issue |
@alexlafroscia let me know if you have any in-progress branch I can test with 🙏 |
I wish I could say I did, but without having any idea where to start digging into this, I don't have anything in progress 😦 |
There is now some in progress work for this issue here: #919 |
That's great! Thank you @ef4 |
This issue should no longer happen with latest Embroider. If you encounter the issue in the latest Embroider version, don't hesitate to ping to reopen. |
Similar issue to #817. I have an app where I'm trying out embroider. This app uses mirage, and it depends on
pretender "^3.4.3"
. I'm getting this build error:Somehow it's trying to resolve
route-recognizer
fromember-source/route-recognizer/index.js
? 🤔Logs
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/Compilation.js:1762:28
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:732:13
at eval (eval at create (/Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :8:1)
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:274:22
at eval (eval at create (/Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :7:1)
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:403:22
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:117:11
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:648:24
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:802:8
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:922:5
at PackagerRunner (@embroider/webpack)
at PackagerRunner (@embroider/webpack)
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/Compilation.js:1762:28
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:732:13
at eval (eval at create (/Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :8:1)
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:274:22
at eval (eval at create (/Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :7:1)
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:403:22
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:117:11
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:648:24
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:802:8
at /Users/esbanarango/Developer/embroiderTestApp/node_modules/webpack/lib/NormalModuleFactory.js:922:5
The text was updated successfully, but these errors were encountered: