-
Notifications
You must be signed in to change notification settings - Fork 137
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
Uncaught (in promise) Error: Could not find module ../@ember/test-helpers/index.js
imported from (require)
#1078
Comments
I just remembered where those And their behavior changed in 0.49.0: #1043 |
The part that's likely to be relevant is embroider/packages/core/src/babel-plugin-adjust-imports.ts Lines 474 to 482 in 42baeb0
Which started inserting an Some combination of those two things is what's emitting these weird relative paths. |
Steps to reproduce:
packageRules: [{
package: 'ember-cli-mirage',
addonModules: {
'get-rfc232-test-context.js': { dependsOnModules: ['@ember/test-helpers'] }
}
}],
|
This is a fix for #1078. I plan to add a test too.
Fixed in #1081 |
Starting in v0.49.0+ I am seeing this error (v0.47.0 & v0.48.0 worked fine):
getRfc232TestContext module looks like:
Specifically these lines cause problems:
I am also seeing this happen in other modules as well where it is creating
../module-name/index.js
and throwing an error.In v0.48.0 this is what the module looked like:
The text was updated successfully, but these errors were encountered: