@ember/test-helpers@2 breaks build with mini-css-extract-plugin and ember-auto-import
See original GitHub issueWe are using mini-css-extract-plugin
and ember-auto-import
to import styles from fullcalendar@5.
The config looks like this:
autoImport: {
webpack: {
plugins: [
new MiniCssExtractPlugin({
filename: 'vendor.css',
}),
],
module: {
rules: [{
test: /\.css$/,
use: [MiniCssExtractPlugin.loader, 'css-loader'],
}],
},
},
},
It became possible after this was added to ember-auto-import https://github.com/ef4/ember-auto-import/pull/205
It was working fine so far.
I was trying to update our app to ember-qunit@5 and @ember/test-helpers@2. After doing the migration I’ve started getting the error:
ERROR in ../node_modules/@fullcalendar/daygrid/main.css
Module build failed (from ../node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ../node_modules/mini-css-extract-plugin/dist/loader.js):
Error: Didn't get a result from child compiler
...
If I remove @ember/test-helpers
from the package.json the build starts working again. This is why I’m opening the issue against this repo, however, it might be something upstream.
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Build breaks after installing ember-link (which uses v1.11.2)
My app is currently using ember-auto-import@v1.10.1 things were ... @ember/test-helpers@2 breaks build with mini-css-extract-plugin and ...
Read more >Bountysource
ember/test-helpers@2 breaks build with mini-css-extract-plugin and ember-auto-import.
Read more >MiniCssExtractPlugin - webpack
This plugin extracts CSS into separate files. It creates a CSS file per JS file which contains CSS. It supports On-Demand-Loading of CSS...
Read more >TypeError: MiniCssExtractPlugin is not a constructor
There is an open issue for this on the create-react-app repository. ... appears that this issue is fixed by mini-css-extract-plugin v2.5.1.
Read more >mini-css-extract-plugin - npm
Start using mini-css-extract-plugin in your project by running `npm i ... TypeScript icon, indicating that this package has built-in type ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@boris-petrov I agree, my point was that I started seeing the problem when I upgraded to 3.24 because the blueprint uses
@ember/test-helpers and ember-qunit
versions where the problem seems to exist@rwjblue sorry to bother you, did you have a chance to look at this issue? It prevents us from upgrading to the latest versions of ember-qunit and test-helpers.