This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 511
Module build failed: TypeError: text.forEach is not a function #131
Comments
I have the same issue |
Adding css-loader to the ignore option fixed this, for me. new SplitByPathPlugin(
[{ name: 'vendor', path: __dirname + '/node_modules' }],
{ ignore: [__dirname + '/node_modules/css-loader'] }
), |
@GreenGremlin Thank you! It helped me. |
thanks @GreenGremlin ! |
Thank you! @GreenGremlin |
I am getting this issue and am not using the |
I am in the same boat as @jknight12882. Seems to be under watch mode specifically. I added some logging to see what the text object is and it is a function. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have webpack config
and app.js file:
with such configuration i receive error for each css file in console output:
Module build failed: TypeError: text.forEach is not a function
at Object. (/home/src/app/node_modules/extract-text-webpack-plugin/loader.js:100:11)
at Compiler. (/home/src/app/node_modules/webpack/lib/Compiler.js:214:10)
at /home/src/app/node_modules/webpack/lib/Compiler.js:403:12....
If I remove configuration, styles are inlined into head of html file.
How should i update or fix it?
The text was updated successfully, but these errors were encountered: