You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[vite] Internal server error: [vite] Named export 'UserOutlined' not found. The requested module '@ant-design/icons' is a CommonJS module, which may not support all module.exports as named exports.
#652
Closed
Liian123 opened this issue
Jul 19, 2024
· 1 comment
· Fixed by #653
[vite] Named export 'UserOutlined' not found. The requested module '@ant-design/icons' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@ant-design/icons';
const {UserOutlined} = pkg;
当我在vite 5.1.0 和remix2 中使用时,导入图标组件会报错,以下是报错信息;当使用"@ant-design/icons": "5.1.4" 版本则没问题。
[vite] Named export 'UserOutlined' not found. The requested module '@ant-design/icons' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@ant-design/icons';
const {UserOutlined} = pkg;
项目地址 https://github.com/Liian123/my-remix-app
急急急
The text was updated successfully, but these errors were encountered: