earthworm icon indicating copy to clipboard operation
earthworm copied to clipboard

[问题] - 按照文档初始化启动项目失败

Open Connell-z opened this issue 1 year ago • 15 comments

Description

截屏2024-03-23 13 28 28 按照文档初始化项目的流程,操作到

Connell-z avatar Mar 23 '24 05:03 Connell-z

@Connell-z 你好,可以尝试下先跑 pnpm schema:build 命令

fengstats avatar Mar 23 '24 05:03 fengstats

@fengstats 感谢,跟着文档,能够成功初始化数据库启动, 过程中vscode终端没报错,可控制台报错:http.ts:19 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'data')

Connell-z avatar Mar 23 '24 12:03 Connell-z

控制台指的是浏览器控制台吗?启动后端 + 前端服务后,开发页面等待加载一会资源,如果页面正常显示并可以使用就不需要管了

fengstats avatar Mar 23 '24 12:03 fengstats

我也是遇见这个问题,你是跑 pnpm schema:build 命令就行了吗?

iheai47 avatar Mar 25 '24 08:03 iheai47

@iheai47 最新代码中已经将 pnpm schema:build 添加到 pnpm db:init 命令中了,按照项目文档步骤来说应该不会有这个问题,出现问题将自己对应的问题截图发出来,包括复现步骤等等,问题描述越清晰,解决越快~

fengstats avatar Mar 25 '24 08:03 fengstats

@=

@iheai47 最新代码中已经将 pnpm schema:build 添加到 pnpm db:init 命令中了,按照项目文档步骤来说应该不会有这个问题,出现问题将自己对应的问题截图发出来,包括复现步骤等等,问题描述越清晰,解决越快~

我已经重新拉取代码解决了 谢谢!

iheai47 avatar Mar 25 '24 08:03 iheai47

@iheai47 解决就好 😊

fengstats avatar Mar 25 '24 08:03 fengstats

@iheai47 解决就好 😊

我可以问一个比较小白的问题吗 我作为一个学生 之前学过vue2.0 和若依这样的前后端分离的springboot集成框架。 在面对earthworm这个项目我是不是应该去学习v3.0和nuxt的才能熟悉这整个项目

iheai47 avatar Mar 25 '24 09:03 iheai47

@iheai47 你好~ Earthworm 主要技术框架就是了两个

  1. 前端 nuxt(其实就是 Vue3)
  2. 后端 nest

如果你只是想熟悉项目学习,在 V2 的基础上,将 V3 的文档简单过一遍,对其中案例自己动手写点 demo 玩玩,就可以来看代码了,项目的整体难度其实并不高的,后端也是同理~

fengstats avatar Mar 25 '24 09:03 fengstats

@fengstats 非常谢谢你!!

iheai47 avatar Mar 25 '24 12:03 iheai47

@fengstats 我重新拉了一遍项目,按照文档能一路配置下来,中途没有报错;但前端启动的时候有如下报错 截屏2024-03-27 11 30 30 截屏2024-03-27 11 30 14 截屏2024-03-27 11 30 07

Connell-z avatar Mar 27 '24 03:03 Connell-z

你是不是只启动了前端, 没有启动后端? 不光要 pnpm dev:client 还有重新开个终端启动 pnpm dev:serve

oxh666 avatar Apr 03 '24 12:04 oxh666

apple m2 node 20.11.0 pnpm 8.3.0 docker 25.0.3

I had finished step 1 ~step 3,and it was working. image But there was a error when i run the step 4 - pnpm db:init. image How can i solve this error?

jersonwei avatar Apr 05 '24 14:04 jersonwei

apple m2 node 20.11.0 pnpm 8.3.0 docker 25.0.3

I had finished step 1 ~step 3,and it was working. image But there was a error when i run the step 4 - pnpm db:init. image How can i solve this error?

Check if the first step, Install Dependencies, has been correctly executed, whether the project contains the node_modules folder, and if it includes the tsup folder.

ibucoin avatar Apr 08 '24 02:04 ibucoin

apple m2 node 20.11.0 pnpm 8.3.0 docker 25.0.3 I had finished step 1 ~step 3,and it was working. image But there was a error when i run the step 4 - pnpm db:init. image How can i solve this error?

Check if the first step, Install Dependencies, has been correctly executed, whether the project contains the node_modules folder, and if it includes the tsup folder. image image I had reinstalled the dependencies,But there was only the tsup@type folder in node_modules.

jersonwei avatar Apr 08 '24 13:04 jersonwei