Skip to content
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

Build fails after upgrading to Angular 12 #45

Open
kamulos opened this issue Aug 3, 2021 · 3 comments
Open

Build fails after upgrading to Angular 12 #45

kamulos opened this issue Aug 3, 2021 · 3 comments

Comments

@kamulos
Copy link

kamulos commented Aug 3, 2021

I am using the license-checker-webpack-plugin in my Angular project. When upgrading from Angular 11 to Angular 12, my build did not work anymore. This has never before been an issue.

Reproduce

For simplicity I create a repo: https://github.com/kamulos/angular-license-checker-bug

There are two commits: the first one is an untouched new Angular project created with the version 12.1.4 of the Angular CLI. The second commit inserts the license-checker-webpack-plugin into the project. To provide a webpack config the custom-webpack package is used.

Error

The error that occurs is:

An unhandled exception occurred: Cannot find module '/path/to/angular-license-checker-bug/node_modules/@angular-devkit/package.json'

This is of course true: there is no package.json in this folder. But this is also nowhere specified as a dependency. One of the subprojects in this folder is probably meant to be checked.

@felixfontein
Copy link

This is the same issue as #43. I've just experienced this problem with a new Angular 13 project where I wanted to use license-checker-webpack-plugin.

@felixfontein
Copy link

... and probably the same as #25. Both #43 and this one should be fixed by #37

@felixfontein
Copy link

For a workaround see #37 (comment).

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

No branches or pull requests

2 participants