ant-design-vue
ant-design-vue copied to clipboard
编译源码报错
- [X] I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.2.3
Environment
node 16 && mac m3
Reproduction link
https://github.com/hdygxsj/ant-design-vue.git
Steps to reproduce
yarn install yarn run dev 或者yarn run site
或者 npm install npm run dev 或者npm run site
What is expected?
源码编译成功
What is actually happening?
✅ Token Meta has been written to components/version/token-meta.json $ npm run routes && vite serve site
[email protected] routes node site/scripts/genrateRoutes.js
failed to load config from /Users/zhongyangyang/IdeaProjects/ant-design-vue/site/vite.config.ts
error when starting dev server:
TypeError: import_lru_cache.default is not a constructor
at Object.
用window可以编译,编译后dist放到nginx下打开白屏
nginx配置
server {
listen 8080;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
npm install -f 或者 npm install --force,然后再执行npm run dev
用window可以编译,编译后dist放到nginx下打开白屏
nginx配置
server { listen 8080; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root html; try_files $uri $uri/ /index.html; index index.html index.htm; }
