-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
loadChildren() does not work as expected #14
Comments
I haven't seen your custom webpack config, but my first guess would be that you're configuring the replaced plugins wrong. Perhaps this is not the best behavior, but that was the required minimum. Would it be helpful if your plugins configuration would have been merged with the original instead of replacing it? Should such an option be turned on by default? Should it be configurable per plugin or general? If this is indeed the case we can continue the discussion in a separate feature request. Thanks for using the lib! |
@meltedspark thanks for your prompt response and inputs. I don't believe this is a // webpack.config.js
new ContextReplacementPlugin(
/(.+)?angular(\\|\/)core(.+)?/,
path.resolve(__dirname, '../src')
), I removed the above config. ...
"architect": {
"build": {
"builder": "@angular-cli-builders:custom-webpack-browser",
"options": {
"customWebpackConfig": {
"path": "./webpack.config.js"
},
... Thanks for your time! |
First of all thanks for creating this useful module and maintaining it!
I have a lazy route as configured in my
app.module
like this:I see the following error:
It may seem like a case of relative path issue but it is not. The same
lazy-route
module works just fine withng6 cli
orng5 cli
generated apps without customwebpack.config.js
The webpack config is also mostly boilerplate:
I have created an example app for your reference. The only difference between this stackblitz project and my
ng-cli
project is, in theng-cli
project I use custom webpack config.Also here's my node/npm/angular setup
Looking forward to any help here
The text was updated successfully, but these errors were encountered: