> npx wordprismic -c .\wp-prismic-config.js
Downloading content
Fetching users...
Fetching posts...
Fetching page 2 of posts...
Fetching page 3 of posts...
(node:43264) UnhandledPromiseRejectionWarning: Error: Unable to encode undefined of type undefined
at j (C:\Users\lee20\AppData\Roaming\npm-cache\_npx\43264\node_modules\wordprismic\node_modules\prismic-javascript\dist\prismic-javascript.min.js:1:11288)
at Object.at (C:\Users\lee20\AppData\Roaming\npm-cache\_npx\43264\node_modules\wordprismic\node_modules\prismic-javascript\dist\prismic-javascript.min.js:1:12560)
at mapCategories (C:\Users\lee20\AppData\Roaming\npm-cache\_npx\43264\node_modules\wordprismic\lib\utils.js:90:26)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async C:\Users\lee20\AppData\Roaming\npm-cache\_npx\43264\node_modules\wordprismic\bin\index.js:21:14
(Use `node --trace-warnings ...` to show where the warning was created)
(node:43264) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:43264) [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.
If you remove the
categoriesType
property from the config file completely (it is marked as optional after all) then the following error happens:Config file
CLI output