question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@ember/test-helpers@2 breaks build with mini-css-extract-plugin and ember-auto-import

See original GitHub issue

We 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:closed
  • Created 3 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mfeckiecommented, Jan 18, 2021

@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

1reaction
andreyfelcommented, Jan 18, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found