at Object.<anonymous> (/Users/wangping/project/vite-vue3-ts-learn/vite.config.ts:29:39) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.require.extensions.<computed> [as .ts] (/Users/wangping/project/vite-vue3-ts-learn/node_modules/vite/dist/node/chunks/dep-6117...
报错信息: [vite] Internal server error: Failed to resolve import "/sandbox/node_modules/vant /lib/vant/es/button/style" from "src/main.js". Does the file exist? Plugin: vite:import-analysis File: /sandbox/src/main.js 3 | import { Button } from 'vant' ...
vite配置vite-plugin-style-import插件后启动报错 我报错了 代码语言:javascript 复制 external=resolvedConfig?.build?.rollupOptions?.external??void0;^SyntaxError:Unexpected token'.'atwrapSafe(internal/modules/cjs/loader.js:915:16)at Module._compile(internal/modules/cjs/loader.js:963:27)at Object.Module...
文档章节: gitee地址 github地址 已知错误: 按文档中示例的npm i vite-plugin-style-import@1.2.0 -D安装1.2.0版本的依赖,配置按需引用后,将出现[vite:style-import] __require.resolve is not a function错误 原因分析: vite-plugin-style-import已确认修复此问题 vbe