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

Seems to have problems with scoped packages #43

Open
cheapsteak opened this issue Jul 10, 2021 · 1 comment
Open

Seems to have problems with scoped packages #43

cheapsteak opened this issue Jul 10, 2021 · 1 comment

Comments

@cheapsteak
Copy link

cheapsteak commented Jul 10, 2021

This currently crashes when dep tree includes scoped packages

Error: Cannot find module '/.../node_modules/@react-aria/package.json'
Require stack:
- /.../node_modules/license-checker-webpack-plugin/src/licenseUtils.js
- /.../node_modules/license-checker-webpack-plugin/src/index.js
- /.../engine-frontend/webpack.config.js

It's trying to find a package.json under the "Scope" part of scoped packages (which would never exist)

cheapsteak added a commit to cheapsteak/license-checker-webpack-plugin that referenced this issue Jul 10, 2021
don't look for package.json under the "scope portion" of scoped packages
e.g. `@react-aria/package.json`
fix microsoft#43
@cheapsteak cheapsteak reopened this Jul 10, 2021
@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
2 participants