Skip to content

ant-design-vue 3.2.12 version source can not run #5993

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
theseagull5233 opened this issue Sep 27, 2022 · 3 comments
Closed
1 task

ant-design-vue 3.2.12 version source can not run #5993

theseagull5233 opened this issue Sep 27, 2022 · 3 comments
Labels

Comments

@theseagull5233
Copy link

theseagull5233 commented Sep 27, 2022

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.12

Environment

windowns 11 chrome version is 103.0.5060.114(正式版本) (64 位)

Reproduction link

[http://www.baidu.com/not address](http://www.baidu.com/not address) 暂无地址

Steps to reproduce

  1. git clone https://github.com/vueComponent/ant-design-vue.git
  2. npm install
  3. npm run dev

What is expected?

page is normal show. chrome console not show error.

What is actually happening?

chrome browser console log is above
Logo.vue:32 Uncaught TypeError: Cannot read properties of undefined (reading 'accept')
at Logo.vue:32:17

@theseagull5233
Copy link
Author

ant-design-vue 3.2.12的源码 npm install 安装依赖后,再运行npm run dev 日志如下
PS E:\WebProject\ant-design-vue> npm run dev

[email protected] predev E:\WebProject\ant-design-vue
npm run version && node node_modules/esbuild/install.js

[email protected] version E:\WebProject\ant-design-vue
node ./scripts/generate-version

[email protected] dev E:\WebProject\ant-design-vue
npm run predev && npm run routes && vite serve site

[email protected] predev E:\WebProject\ant-design-vue
npm run version && node node_modules/esbuild/install.js

[email protected] version E:\WebProject\ant-design-vue
node ./scripts/generate-version

[email protected] routes E:\WebProject\ant-design-vue
node site/scripts/genrateRoutes.js

▲ [WARNING] "../components/style/color/colorPalette.less" should be marked as external for use with "require.resolve" [require-resolve-not-external]

site/vite.config.ts:49:49:
  49 │           hack: `true;@import "${require.resolve('../components/style/color/colorPalette.less')}";`,
     ╵                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

▲ [WARNING] "../components/style/color/colorPalette.less" should be marked as external for use with "require.resolve" [require-resolve-not-external]

site/themeConfig.ts:9:45:
  9 │       hack: `true;@import "${require.resolve('../components/style/color/colorPalette.less')}";`,
    ╵                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

VITE v3.1.3 ready in 2715 ms

➜ Local: http://localhost:5173/
➜ Network: http://192.168.102.47:5173/
➜ Network: http://192.168.105.1:5173/
➜ Network: http://192.168.245.1:5173/

浏览器输入 http://localhost:5173/
控制台提示错误
Logo.vue:32 Uncaught TypeError: Cannot read properties of undefined (reading 'accept')
at Logo.vue:32:17

@zerobin
Copy link

zerobin commented May 18, 2023

版本3.2.20 同样会报这个问题

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants