Created
May 8, 2019 10:08
-
-
Save dancgray/df463611a2b25ff0625f7d713e46e481 to your computer and use it in GitHub Desktop.
Error when component name not present in zip components or installed components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To reproduce add content with a new component that is not included in the import zip. | |
(node:3626) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '_id' of undefined | |
at Promise (/source/deltanet/github/adapt_authoring/plugins/output/adapt/importsource.js:501:70) | |
at new Promise (<anonymous>) | |
at transformContent (/source/deltanet/github/adapt_authoring/plugins/output/adapt/importsource.js:488:12) | |
at transform (/source/deltanet/github/adapt_authoring/plugins/output/adapt/importsource.js:561:9) | |
at /source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:3880:24 | |
at replenish (/source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:1011:17) | |
at /source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:1016:9 | |
at eachOfLimit (/source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:1041:24) | |
at /source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:1046:16 | |
at _parallel (/source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:3879:5) | |
at Object.series (/source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:4735:5) | |
at createContentItem (/source/deltanet/github/adapt_authoring/plugins/output/adapt/importsource.js:559:11) | |
at /source/deltanet/github/adapt_authoring/plugins/output/adapt/importsource.js:432:13 | |
at /source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:3110:16 | |
at replenish (/source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:1011:17) | |
at iterateeCallback (/source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:995:17) | |
at /source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:969:16 | |
at /source/deltanet/github/adapt_authoring/plugins/output/adapt/importsource.js:441:15 | |
at error (/source/deltanet/github/adapt_authoring/plugins/output/adapt/importsource.js:615:53) | |
at /source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:473:16 | |
at iteratorCallback (/source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:1064:13) | |
at /source/deltanet/github/adapt_authoring/node_modules/async/dist/async.js:969:16 | |
at /source/deltanet/github/adapt_authoring/plugins/output/adapt/importsource.js:685:15 | |
at /source/deltanet/github/adapt_authoring/lib/dml/mongoose/index.js:266:14 | |
at /source/deltanet/github/adapt_authoring/node_modules/mongoose/lib/model.js:4698:16 | |
at /source/deltanet/github/adapt_authoring/node_modules/mongoose/lib/utils.js:258:16 | |
at model.$__save.error (/source/deltanet/github/adapt_authoring/node_modules/mongoose/lib/model.js:479:7) | |
at /source/deltanet/github/adapt_authoring/node_modules/mongoose/node_modules/kareem/index.js:315:21 | |
(node:3626) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) | |
(node:3626) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Imports should always have a corresponding plugin for each components referenced in JSON, so not really an issue, just wanted to records some where.