只要使用组件就会报错,
This error came from the "onResolve" callback registered here:
node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/lib/main.js:1293:20:
1293 │ let promise = setup({
╵ ^
node_modules/.pnpm/antd@5.17.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/notification/PurePanel.js:19:23:
19 │ import { Notice } from 'rc-notification';
╵ ~~~~~~~~~~~~~~~~~
✘ [ERROR] Failed to resolve entry for package "@ant-design/cssinjs". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-pre-bundle]
node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/lib/main.js:1374:21:
1374 │ let result = await callback({
╵ ^
Reproduction link
https://github.com/wanghao1993/react-admin.git
Steps to reproduce
直接安装依赖,启动就会看到错误。
What is expected?
期望能够正常运行
What is actually happening?
只要使用组件就会报错, This error came from the "onResolve" callback registered here:
✘ [ERROR] Failed to resolve entry for package "@ant-design/cssinjs". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-pre-bundle]