Skip to content

Compatibility with AngularCompilerPlugin #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ViieeS opened this issue Apr 18, 2019 · 3 comments
Closed

Compatibility with AngularCompilerPlugin #169

ViieeS opened this issue Apr 18, 2019 · 3 comments
Labels

Comments

@ViieeS
Copy link

ViieeS commented Apr 18, 2019

Try to use ExtractCssChunksPlugin with AngularCompilerPlugin but get error:

ERROR in Module build failed (from ../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js):
TypeError: Cannot read property 'replace' of undefined
    at normalizeBackSlashDirection (/Projects/Web/frontend/node_modules/webpack/lib/RequestShortener.js:16:17)
    at new RequestShortener (/Projects/Web/frontend/node_modules/webpack/lib/RequestShortener.js:26:15)
    at new Compiler (/Projects/Web/frontend/node_modules/webpack/lib/Compiler.js:185:27)
    at Compiler.createChildCompiler (/Projects/Web/frontend/node_modules/webpack/lib/Compiler.js:508:25)
    at Compilation.createChildCompiler (/Projects/Web/frontend/node_modules/webpack/lib/Compilation.js:2498:24)
    at Object.pitch (/Projects/Web/frontend/node_modules/extract-css-chunks-webpack-plugin/dist/loader.js:90:43)
ℹ 「wdm」: Failed to compile.

Similar problem with mini-css-extract-plugin: webpack-contrib/mini-css-extract-plugin#186

@ScriptedAlchemy
Copy link
Collaborator

Try it now

@ViieeS
Copy link
Author

ViieeS commented May 17, 2019

@ScriptedAlchemy same error on ExtractCssChunksPlugin v4.4.0

@nickbullock
Copy link

nickbullock commented Jul 22, 2019

Got it too. Here is a minimum repro https://github.com/nickbullock/angular-mini-css-extract-plugin-example
npm run start - and you can see this error in console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants