(F:\projects\app1\node_modules\@ngtools\json-schema\src\schema-tree.js:209:14)
at OneOfSchemaTreeNode_createChildProperty (F:\projects\app1\node_modules\@ngtools\json-schema\src\schema-tree.js:148:26)_typesPrototype.sche
我正在学习Node.js,并试图为电影租赁服务构建一个简单的应用程序。这是我为电影定义模式的代码,它抛出了一个错误。我在Windows上,我的文本编辑器是VScode,终端是powershellD:\Study\Vidly\node_modules\mongoose\lib\schema.js:475
throw new TypeError('Invalid value fo
\mongoose\lib\schema\array.js:134:11)的SchemaArray.enum at SchemaArray.SchemaType (C:\carsapp\node_modules\mongoose\lib\schematype.js:55:18) at new SchemaArray (C:\carsapp\node_modules\mongoose\lib\schema\array.js:85:14) at Function.S
/sails/node_modules/waterline/node_modules/waterline-schema/lib/waterline-schema/foreignKeys.js:104/lib/waterline-schema/foreignKeys.js:104:11)
at ForeignKeys.replaceKeys (/
called on non-object at Schema.add (/home/ubuntu/ds_queuesystem/node_modules/mongoose/lib/schema.js:381:21)
at new Schema (/home/ubuntu/ds_queuesystem/node</e