Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

nodejs 13.0-13.6 and colorette dependency #1943

Closed
ym-project opened this issue Oct 14, 2020 · 1 comment
Closed

nodejs 13.0-13.6 and colorette dependency #1943

ym-project opened this issue Oct 14, 2020 · 1 comment
Labels

Comments

@ym-project
Copy link

Describe the bug

nodejs 13.0-13.6 has a bug. If any package has ESM support (exports key in package.json) nodejs catches an error

Error: No valid exports main found for '/node_modules/packageName'

webpack-cli has a dependency colorette. This dependency break a building because of it has an esm support (issue).

To Reproduce

I created an repository to reproduce this error https://github.com/ym-project/webpack-cli-bug. You should have nodejs 13.0-13.6 or use docker.

How to fix

Use dependency that doesn't have an esm support until nodejs version is deprecated. Or write about this problem in README file or somewhere.

Versions

nodejs: 13.0-13.6
webpack: 5.1.0
webpack-cli: 4.0.0

@ym-project ym-project added the Bug label Oct 14, 2020
@alexander-akait
Copy link
Member

Do not use node@13.0-13.6, because it is broken and it is not lts version

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

No branches or pull requests

2 participants