Error:
draft7.js:17 Uncaught TypeError: (0 , applicator_1.default) is not a function
at eval (draft7.js:17:99)
at ./node_modules/@glazed/devtools/node_modules/ajv/dist/vocabularies/draft7.js (app.53fd3e10.js:3310:1)
I get the same error for:
const ceramic = new CeramicClient()
const manager = new ModelManager({ ceramic})
Hi, I can’t reproduce locally so I expect it has to do with your environment.
Are you using Node.js v16 or another version please? Ceramic only supports v16.
this message (.default is not a function) suggests an issue between ESModules & commonjs.
If you’re using typescript, you probably want to check your tsconfig esModuleInterop setting. This setting controls how the default import is treated in commonjs. Workarounds include import * from ... and something involving goat’s blood on full moon. Honestly, I just spent a full month converting from CJS to ESM and I still barely understand it.