blocklet / blocklet-site

Blocklet platform and developer site and documentation
https://www.blocklet.io
Other
3 stars 0 forks source link

[Feedback] prisma 需要 nodejs 14.17+ #75

Closed donotlb closed 2 years ago

donotlb commented 2 years ago

这个问题不容易定位, 建议补充到文档里

⚠️ 如果 nodejs 版本低于 14.17, blocklet 日志面板里显示的错误是 "schema.prisma 文件找不到", 需要留意 blocklet server 输出的其它日志

Error: ENOENT: no such file or directory, open '.../blocklet-server/tmp/.blocklet-server/blocklets/did-comments/0.7.23/schema.prisma'

image


Document Details

donotlb commented 2 years ago

相关: https://github.com/ArcBlock/blocklet-server/issues/5733

donotlb commented 2 years ago

使用 prisma 的 blocklet 可以在 blocklet.yml 中限制 nodejs version

https://developer.blocklet.io/docs/en/reference/blocklet-spec#specify-the-minimum-nodejs-version-number

wangshijun commented 2 years ago

@skypesky 文档请你来更新下吧

skypesky commented 2 years ago

@wangshijun @donotlb

image image
donotlb commented 2 years ago

可行,或者加一个 FAQ 或常见问题 章节 ?

比如这里 https://mui.com/material-ui/getting-started/faq/#my-app-doesnt-render-correctly-on-the-server