-
3 votesanswersviews
KeystoneJS - 创建新项目会引发重复键错误
我见过一些与此相关的类似问题,但没有找到答案 . 我正在尝试在我的Keystone项目中创建一个类似于帖子的图库,其中将有一个图库列表,其中包含一组选定图像的图库: var keystone = require('keystone'), Types = keystone.Field.Types; /** * Gallery Model * ============= */ var... -
2 votesanswersviews
在VS Code调试器中使用旧版本的节点
我将VS Code更新为1.14.2并尝试运行需要Node 6.x的应用程序 . 在此更新之前,我使用的配置工作正常: { "version": "0.2.0", "configurations": [ { "type": "node", ... -
0 votesanswersviews
具有Keystone的GraphQL希望字段类型必须是输出类型,但得到:undefined
我不想为我的keystone.js应用程序创建GraphQL endpoints (通过快速中间件express-graphql) . 这是我的Keystone Schema: const keystone = require('keystone'); const Types = keystone.Field.Types; const User = new keystone.List('Use... -
0 votesanswersviews
将ReactJS作为KeystoneJS应用程序的静态内容提供
我有一个非常基本的keystone应用程序,我在“/ client”文件夹中创建了一个react应用程序,并将其构建为“/ client / build” . 我已经设置了keystone的静态服务: 'static': 'client/build', 一切都很好,除了在访问和主页之后,反应应用程序不让我输入keystone的url . 例如:如果我输入“localhost:3000 / key...