⚠️ CORE TEAM EDIT ⚠️ This was temporarily patched in 0.6.5, but is awaiting the issue to be fixed in mongoose directly. Once fixed there, we can remove the patch.
Expected Behaviour
Course should be created on clicking save button.
Actual Behaviour
Getting the following error while saving the course
"Something went wrong while saving your data.
Please try again."
Terminal Output:
TypeError: Cannot create property 'path' on string 'required'
at /home/ubuntu/adapt_authoring/node_modules/mongoose/lib/schematype.js:948:30
at Array.forEach (<anonymous>)
at SchemaString.SchemaType.doValidate (/home/ubuntu/adapt_authoring/node_modules/mongoose/lib/schematype.js:939:19)
at /home/ubuntu/adapt_authoring/node_modules/mongoose/lib/document.js:1936:9
at process._tickCallback (internal/process/next_tick.js:61:11)
Versions
- Authoring Tool Version: 0.6.4
- Framework Version: v4
- Node.js Version: v10.15.1
- MongoDB Version: v4.0.6
- Operating System: Ubuntu 18.04
- Browser: Chrome Beta
Expected Behaviour
Course should be created on clicking save button.
Actual Behaviour
Getting the following error while saving the course
"Something went wrong while saving your data.
Please try again."
Terminal Output:
Versions