TypeScript template results in extract-text-webpack-plugin error
See original GitHub issueThe default typescript template generates a project that fails to build.
Environment
react-static --version
: 5.9.8node -v
: v8.11.3yarn --version
: 1.9.4- Operating system: macOS High Sierra
Steps to Reproduce the problem
- react-static create -n my-static-site -t typescript
- cd my-static-site
- yarn build
Result:
Error: Module build failed: Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin, refer to https://github.com/webpack/extract- text-webpack-plugin for the usage example
Expected Behavior
Expect the generated project to build successfully.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Angular 5 Error: "extract-text-webpack-plugin" loader is used ...
I have this error when compiling. ERROR in ./src/app/app.component.css Module build failed: Error: "extract-text-webpack-plugin" loader is used ...
Read more >ERROR in ./node_modules/css-loader!./node_modules/sass ...
My code works perfectly in dev environment when I try npm run build I get the following error: ERROR in ./node_modules/css-loader!
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 >fork-ts-checker-webpack-plugin - npm
Runs typescript type checker and linter on separate process. ... watching many files can result in a lot of CPU or memory usage ......
Read more >Solution - "extract-text-webpack-plugin" loader is used without ...
Recurring problem in Webpack's extract-text-webpack-plugin package, ... and using underscore-template-loader as part of a template definition.
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 Free
Top 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
Follow up:
I actually managed to do a temporary fix, i replaced
defaultLoaders.cssLoader
instatic.config.js
with:But it feels like
defaultLoaders.cssLoader
should handle this right?Yeah, I think that’s the best option. The plugin will offer a lot more flexibility than an example that will get outdated. Let’s track any issues with the plugin there from here on out: https://gitlab.com/Vinnl/react-static-plugin-typescript