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

构建产物无法运行,执行node index.js之后无任何响应和输出. #217

Open
JsonSong89 opened this issue Dec 3, 2024 · 2 comments
Assignees

Comments

@JsonSong89
Copy link

backend-app示例
第一次执行 build报错:
× Installing @celljs/[email protected] in default runtime...
手动添加@celljs/cli-service 后build成功
构建出了一个2M的backend-app.cell\dist\backend\index.js文件
执行node index.js之后无任何响应和输出.
win11
node -v v22.11.0
image

@JsonSong89
Copy link
Author

server可以运行

@celljs/[email protected] start D:\code\demo\node\cell\examples\backend-app
cell serve

╭────────────────────────────────────────╮
│ Cell Development Framework │
│ @celljs/[email protected]
│ Runtime │
╰────────────────────────────────────────╯

🏷 cell mode - local
🏷 cell mode - cell
🎯 cell target - backend
🧱 cell component - @celljs/[email protected]
🧱 cell component - @celljs/[email protected]
🧱 cell component - @celljs/[email protected]
🧱 cell component - @celljs/[email protected]
🧱 cell component - @celljs/[email protected]
webpack-hook
backend build [====================] 98% (2.3 seconds)

DONE Compiled successfully in 2334ms 11:41:46

I The backend is running at http://localhost:3000 🎉

Build completed in 2.425s

但是请求 http://localhost:3000http://localhost:3000/users
返回 Cannot GET / 和 Cannot GET /users
除了 devDependencies 添加@celljs/cli-service 之外 没有其他改动了
是不兼容node22吗?

@muxiangqiu
Copy link
Member

我尽快看看

@muxiangqiu muxiangqiu self-assigned this Dec 13, 2024
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

2 participants