next-notes-typescript error
Closed this issue · 1 comments
sjdthree commented
Description
Following the README for next-notes-template, I follow each step exactly and when i hit:
yarn run publish-model
I get the following:
yarn run v1.22.17
$ node --experimental-json-modules ./scripts/publish-model.mjs
node:internal/errors:465
ErrorCaptureStackTrace(err);
^
TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "file://[personal filesystem data redacted]/ceramic-template-app/node_modules/@glazed/devtools/node_modules/ajv/lib/refs/json-schema-secure.json" needs an import assertion of type "json"
at new NodeError (node:internal/errors:372:5)
at validateAssertions (node:internal/modules/esm/assert:82:15)
at defaultLoad (node:internal/modules/esm/load:24:3)
at ESMLoader.load (node:internal/modules/esm/loader:363:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:282:22)
at new ModuleJob (node:internal/modules/esm/module_job:66:26)
at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:301:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:260:34)
at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:81:21)
at async Promise.all (index 9) {
code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING'
}
Node.js v17.6.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.```
# Technical Information
It looks like a simple fix by adding an explicit assertion on the import line.