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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
ember-auto-import breaks assets rewriting #94
Comments
ember-auto-import
breaks assets rewriting
I can't reproduce. What packages are you trying to auto import? Also, can you put a breakpoint or console.log at the site of the exception and tell me the values of |
I'm not pulling in auto import directly, it is pulled in by |
This is the console log of
The last replaceString looks odd, while on 1.2.6 everything looks good:
|
Thanks, that helped me find this: ember-cli/broccoli-asset-rewrite#65 That is the underlying cause. |
When ember-cli/broccoli-asset-rewrite#64 is merged and released it will fix this issue. You can probably workaround by disabling sourcemaps: let app = new EmberApp(defaults, {
sourcemaps: { enabled: false}
}); |
I just ran into this issue with |
Hi,
When fingerprint prepend is set and
ember-auto-import
>= 1.2.7 is installed, the asset rewriter receives an invalid path and breaks the build:Error: Build Canceled: Broccoli Builder ran into an error with `AssetRewrite` plugin. 馃挜 Cannot read property '2' of null TypeError: Cannot read property '2' of null at AssetRewrite.rewriteAssetPath (node_modules/broccoli-asset-rewrite/index.js:127:91) at AssetRewrite.processString (node_modules/broccoli-asset-rewrite/index.js:167:24) at AssetRewrite.processFile (node_modules/broccoli-filter/index.js:165:31) at asyncProcessFile (node_modules/broccoli-filter/index.js:122:21) at tryCatch (node_modules/rsvp/dist/rsvp.js:525:12) at invokeCallback (node_modules/rsvp/dist/rsvp.js:538:13) at node_modules/rsvp/dist/rsvp.js:606:14 at flush (node_modules/rsvp/dist/rsvp.js:2415:5) at process._tickCallback (internal/process/next_tick.js:61:11)Pipeline aborted
Pinning
ember-auto-import
to1.2.6
solves the problem.The text was updated successfully, but these errors were encountered: