ERROR in ./node_modules/.pnpm/antd@4.16.3_react-dom@17.0.2_react@17.0.2/node_modules/antd/dist/antd.less 1:0
Module parse failed: Unexpected character '@' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> @import "../lib/style/index.less";
| @import "../lib/style/components.less";
@ ./src/pages/app.tsx 1:0-29
@ ./src/main/tool.main.chrome.ts
Bug 描述
master分支,使用pnpm安装所有依赖后跑
npm run dev
编译打包,webpack报错:复现步骤
安装Node v20.16.0 LTS,安装pnpm,执行
pnpm install
安装所有依赖,启动测试服务器进行编译预期行为
编译过程无报错
截图