-
Notifications
You must be signed in to change notification settings - Fork 12k
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
TypeError: filename.endsWith is not a function #17087
Comments
Thanks @alan-agius4 for filing. If this is a regression, do you know what angular cli version would this be working in that I can downgrade to? |
For now I force downgraded mini-css-extract-plugin to 0.6.0 and the issue got resolved. |
…changing the name of compiling chunks Fixes angular#17087
…changing the name of compiling chunks Fixes angular#17087
…changing the name of compiling chunks Fixes #17087
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Not sure.
Description
I'm building an angular elements project with ngx-build-plus with the following command and I'm getting the following error:
🌍 Your Environment
Anything else relevant?
In
angular-cli/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts
Line 154 in c9a5f3c
filename
can sometimes be a function, putting a line of code such as:if (typeof filename === 'function') { filename = filename(chunkdata); }
resolves the issue.
See https://github.com/pirelenito/git-revision-webpack-plugin/pull/42/files and webpack-contrib/mini-css-extract-plugin#417 for similar discussions and fixes.
The text was updated successfully, but these errors were encountered: