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

Webpack5 ESM strict mode #226

Open
ValeryLosik opened this issue Oct 12, 2020 · 4 comments
Open

Webpack5 ESM strict mode #226

ValeryLosik opened this issue Oct 12, 2020 · 4 comments

Comments

@ValeryLosik
Copy link

Good explanation can be found here
babel/babel#12058 (comment)
In general, all imports should have extensions. Thanks

@tonoslav
Copy link

tonoslav commented Jan 6, 2021

@ValeryLosik any solution?

@ldttmt
Copy link

ldttmt commented Jun 5, 2021

Any workaround for this?

@canopus1io
Copy link

BUMP

If I understand this correctly,

  1. rc-tooltip bundles @babel/runtime^7.11.2 which will not build on webpack 5 (due to ESM strict mode)
  2. @babel/[email protected] resolves this issue as stated here
  3. rc-motion has updated their babel runtime requirement to @babel/runtime^7.11 (Not compatible with webpack 5 motion#14)

why was rc-tooltip not updated? is there a workaround that I'm not aware of?

@yoyo837
Copy link
Member

yoyo837 commented Feb 3, 2023

ant-design % npm ls @babel/runtime
[email protected] /Users/tanghui/git/github/ant-design
├─┬ @ant-design/[email protected]
│ └── @babel/[email protected] deduped
├─┬ @ant-design/[email protected]
│ └── @babel/[email protected] deduped
├─┬ @ant-design/[email protected]
│ └── @babel/[email protected] deduped
├─┬ @ant-design/[email protected]
│ └─┬ @babel/[email protected]
│   └─┬ @babel/[email protected]
│     └─┬ [email protected]
│       └── @babel/[email protected] deduped
├── @babel/[email protected]
├─┬ @emotion/[email protected]
│ ├── @babel/[email protected] deduped
│ └─┬ @emotion/[email protected]
│   ├── @babel/[email protected] deduped
│   └─┬ [email protected]
│     └── @babel/[email protected] deduped
├─┬ @emotion/[email protected]
│ └── @babel/[email protected] deduped
├─┬ @rc-component/[email protected]
│ └── @babel/[email protected] deduped
├─┬ @rc-component/[email protected]
│ ├── @babel/[email protected] deduped
│ └─┬ @rc-component/[email protected]
│   └── @babel/[email protected] deduped
├─┬ @testing-library/[email protected]
│ └── @babel/[email protected] deduped
├─┬ @testing-library/[email protected]
│ └── @babel/[email protected] deduped
├─┬ @testing-library/[email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └─┬ [email protected]
│   ├── @babel/[email protected] deduped
│   └─┬ [email protected]
│     └── @babel/[email protected] deduped
├─┬ [email protected]
│ ├─┬ @ant-design/[email protected]
│ │ └── @babel/[email protected] deduped
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── @babel/[email protected] deduped
│ └─┬ [email protected]
│   ├── @babel/[email protected]
│   ├─┬ @umijs/[email protected]
│   │ └─┬ @umijs/[email protected]
│   │   └── @babel/[email protected]
│   ├─┬ @umijs/[email protected]
│   │ └─┬ @umijs/[email protected]
│   │   └── @babel/[email protected] deduped
│   └─┬ @umijs/[email protected]
│     ├── @babel/[email protected]
│     ├─┬ @loadable/[email protected]
│     │ └── @babel/[email protected] deduped
│     ├─┬ [email protected]
│     │ └── @babel/[email protected] deduped
│     └─┬ [email protected]
│       └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ ├── @babel/[email protected] deduped
│ └─┬ @rc-component/[email protected]
│   └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ ├── @babel/[email protected] deduped
│ └─┬ [email protected]
│   └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ ├── @babel/[email protected] deduped
│ └─┬ @rc-component/[email protected]
│   └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ ├── @babel/[email protected] deduped
│ └─┬ [email protected]
│   └── @babel/[email protected] deduped
├─┬ [email protected]
│ ├── @babel/[email protected] deduped
│ └─┬ [email protected]
│   └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └── @babel/[email protected] deduped
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── @babel/[email protected] deduped
└─┬ [email protected]
  └── @babel/[email protected] deduped

Effect after clean installation.

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

5 participants