Skip to content
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

我使用打包安装方式跟直接启动方式,前端都报错Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'join') #36

Open
qq80284445 opened this issue Jul 30, 2024 · 1 comment

Comments

@qq80284445
Copy link

我使用打包安装方式跟直接启动方式,前端都报错Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'join')
而且打包也会报错:The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
vite v5.0.12 building for production...
✓ 1236 modules transformed.
Could not resolve "../userinfo/images/#U5b66#U751f#U5361#U901a_1.png?url" from "src/views/chatgpt/index.vue?vue&type=script&setup=true&lang.ts"
file: /home/www/node_project/upimg/client/src/views/chatgpt/index.vue?vue&type=script&setup=true&lang.ts
error during build:
RollupError: Could not resolve "../userinfo/images/#U5b66#U751f#U5361#U901a_1.png?url" from "src/views/chatgpt/index.vue?vue&type=script&setup=true&lang.ts"
at error (file:///home/www/node_project/upimg/client/node_modules/rollup/dist/es/shared/parseAst.js:337:30)
at ModuleLoader.handleInvalidResolvedId (file:///home/www/node_project/upimg/client/node_modules/rollup/dist/es/shared/node-entry.js:18022:24)
at file:///home/www/node_project/upimg/client/node_modules/rollup/dist/es/shared/node-entry.js:17982:26

@qq80284445
Copy link
Author

这是不打包直接运行访问提示
main.ts:29 [Vue Router warn]: No match found for location with path "/"
App.vue:32 command + shift + p
config.ts:45 Uncaught (in promise)
TypeError: Cannot read properties of undefined (reading 'join')
at config.ts:45:29


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant