emonney / QuickApp

ASP.NET Core / Angular startup project template with complete login, user and role management. Plus other useful services for Quick Application Development
https://www.ebenmonney.com/quickapp
MIT License
1.27k stars 599 forks source link

webpack ./node_modules/@angular/core/esm5/core.js #50

Closed IngoManthey closed 7 years ago

IngoManthey commented 7 years ago

Hi Dear, I upgraded the project to version 5.0.1 with npm-upgrade. Because I want to use Angular/Material. if I call webpack --config webpack.config.vendor.js I get follow warning: WARNING in ./node_modules/@angular/core/esm5/core.js 6438:15-36 Critical dependency: the request of a dependency is an expression @ ./node_modules/@angular/core/esm5/core.js @ dll vendor

Here https://github.com/asadsahi/AspNetCoreSpa/issues/96 I read that is a problem with the webpack.config.js.

what can I do. Thanks for your help. Regards Ingo

IngoManthey commented 7 years ago

I resolve the problem.

jcheenatcode commented 6 years ago

@IngoManthey How did you resolve this issue? Was having the same issue.

Thanks

IngoManthey commented 6 years ago

@jcheenatcode add to webpack.config.vendor.js new webpack.ContextReplacementPlugin(/\@angular(\|\/)core(\|\/)esm5/, path.join(__dirname, './client')),

renmengting commented 6 years ago

@IngoManthey is this right? new webpack.ContextReplacementPlugin(/\@angular(\\|\/)core(\\|\/)esm5/, path.join(__dirname, './ClientApp')),

IngoManthey commented 6 years ago

@renmengting yes I wrote it . add in plugins: