You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> node_modules/ant-design-vue/es/skeleton/index.js:1:44: error: Cannot read file "https:/cdn.jsdelivr.net/npm/vue@3.0.6/dist/vue.esm-browser.js": The filename, directory name, or volume label syntax is incorrect.
1 │ import { createVNode as _createVNode } from "vue";
╵ ~~~~~
Reproduction
Please provide a link to a repo that can reproduce the problem you ran into.
A reproduction is required unless you are absolutely sure that the the problem is obvious and the information you provided is enough for us to understand what the problem is. If a report has only vague description (e.g. just a generic error message) and has no reproduction, it will be closed immediately. https://github.com/FanhuaCloud/antd_vuecdn
System Info
vite version: 2.0.3
Operating System: win10 20H2 x64
Node version: v14.15.5
Package manager (npm/yarn/pnpm) and version: yarn 1.22.10
Logs (Optional if provided reproduction)
Run vite or vite build with the --debug flag.
Provide the error log here.
C:\Users\he\Desktop\vite-project>yarn dev
yarn run v1.22.10
warning package.json: No license field
$ vite
Pre-bundling dependencies:
ant-design-vue
(this will be run only when your dependencies or config have changed)
> node_modules/ant-design-vue/es/skeleton/index.js:1:44: error: Cannot read file "https:/cdn.jsdelivr.net/npm/vue@3.0.6/dist/vue.esm-browser.js": The filename, directory name, or volume label syntax is incorrect.
1 │ import { createVNode as _createVNode } from "vue";
╵ ~~~~~
error when starting dev server:
Error: Build failed with 1 error:
node_modules/ant-design-vue/es/skeleton/index.js:1:44: error: Cannot read file "https:/cdn.jsdelivr.net/npm/vue@3.0.6/dist/vue.esm-browser.js": The filename, directory name, or volume label syntax is incorrect.
at failureErrorWithLog (C:\Users\he\Desktop\vite-project\node_modules\esbuild\lib\main.js:1171:15)
at buildResponseToResult (C:\Users\he\Desktop\vite-project\node_modules\esbuild\lib\main.js:907:32)
at C:\Users\he\Desktop\vite-project\node_modules\esbuild\lib\main.js:1002:20
at C:\Users\he\Desktop\vite-project\node_modules\esbuild\lib\main.js:553:9
at handleIncomingPacket (C:\Users\he\Desktop\vite-project\node_modules\esbuild\lib\main.js:642:9)
at Socket.readFromStdout (C:\Users\he\Desktop\vite-project\node_modules\esbuild\lib\main.js:520:7)
at Socket.emit (events.js:315:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at Socket.Readable.push (internal/streams/readable.js:223:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
vite.config.js
main.js
when run dev, it have a error
Reproduction
Please provide a link to a repo that can reproduce the problem you ran into.
A reproduction is required unless you are absolutely sure that the the problem is obvious and the information you provided is enough for us to understand what the problem is. If a report has only vague description (e.g. just a generic error message) and has no reproduction, it will be closed immediately.
https://github.com/FanhuaCloud/antd_vuecdn
System Info
vite
version: 2.0.3Logs (Optional if provided reproduction)
vite
orvite build
with the--debug
flag.The text was updated successfully, but these errors were encountered: