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.

Errors with ExtractTextPlugin and MiniCssExtractPlugin

See original GitHub issue

Hello,

We have 2 projects, the first one is using webpack 3 with ExtractTextPlugin and the second is using webpack 4 with MiniCssExtractPlugin.

In both of these projects, we have a lot of errors like this one :

Error: WebpackRequireFrom: 'getChunkURL' is not a function or not available at runtime. See https://github.com/agoldis/webpack-require-from#troubleshooting
    at Function.get [as p] (H:\project\node_modules\css-loader\index.js!H:\project\node_modules\less-loader\dist\cjs.js??ref--10-2!H:\project\no
de_modules\dep\example.less:67:21)

Hopefully, everything is working but the log is now quite annoying to read… It seems that the webpack-require-from plugin is going through our CSS chunks. Is it possible to ignore these chunks ? If not, can you consider the possibility to add an option to filter chunks ?

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bee-pocommented, Jul 11, 2018

Hi, thank you very much for your quick answer!

here is an example of code reproducing the problem: https://github.com/bee-po/webpack-require-from-issue-9

0reactions
agoldiscommented, Mar 10, 2019

Seems like suppressing errors logging is good enough for now. Closing, please reopen if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebPack 4 should use "mini-css-extract-plugin" instead of ...
WebPack 4 should use "mini-css-extract-plugin" instead of ... Why separate? The Tapable.plugin error is because of ExtractTextPlugin ...
Read more >
Webpack 4 mini-css-extract-plugin error: You may need an ...
new to webpack, Trying to export scss file to css using mini-css-extract-plugin with no success, I get this error: ERROR in .
Read more >
MiniCssExtractPlugin - webpack
It supports On-Demand-Loading of CSS and SourceMaps. It builds on top of a new webpack v5 feature and requires webpack 5 to work....
Read more >
mini-css-extract-plugin - npm
extracts CSS into separate files. Latest version: 2.7.2, last published: a month ago. Start using mini-css-extract-plugin in your project by ...
Read more >
mini-css-extract-plugin-async - npm package - Snyk
Learn more about mini-css-extract-plugin-async: package health score, ... No known security issues ... Compared to the extract-text-webpack-plugin:.
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