Closed lexang closed 3 weeks ago
我的不知道为啥报错了
貌似electron版本问题? 你看下package.json中的electron版本, npm install有没有正确的版本。
貌似electron版本问题? 你看下package.json中的electron版本, npm install有没有正确的版本。
npm start 之后 打开http://localhost:3000/#/ 控制台报错 那写下拉列表数据也没加载成功
main.js:14 [Vue warn]: Error in created hook: "TypeError: Cannot read properties of undefined (reading 'receiveAways')"
found in
--->
这个是桌面软件,不要用浏览器访问localhost:3000 直接npm install后,npm start或者npm run start。会自动打开软件。 如果不行:请贴一下npm start后的输出,我再看下。
(base) PS E:\pythonProject\lpanda> npm start
lpanda@1.0.1 start concurrently -k "npm run dev" "npm run electron"
[0]
[0] > lpanda@1.0.1 dev
[0] > vite
[0]
[1]
[1] > lpanda@1.0.1 electron
[1] > wait-on tcp:3000 && npm run dev:el
[1]
[0]
[0] vite v2.9.18 dev server running at:
[0]
[0] > Local: http://localhost:3000/
[0] > Network: use --host
to expose
[0]
[0] ready in 395ms.
[0]
[0] 12:33:17 [vite] warning:
这个是桌面软件,不要用浏览器访问localhost:3000 直接npm install后,npm start或者npm run start。会自动打开软件。 如果不行:请贴一下npm start后的输出,我再看下。
没有打开软件
你是本地用命令行运行的吗?
你是本地用命令行运行的吗?
嗯嗯 是的 在vscode的终端运行的 我看你用的vue electron版本都比较老 会不会是我node版本太高了?
有可能,你用nvm 装个node 14试试,不行你修改一下pacakge.json,去掉^,指定版本,再npm install试试
有可能,你用nvm 装个node 14试试,不行你修改一下pacakge.json,去掉^,指定版本,再npm install试试
终于出来了 。。。 应该就是node版本问题
怎么运行啊