So When I try to run an auto generated migration script using the cli, it fails giving me this error:
Error: Must use import to load ES Module: /Users/omni/repos/treyd/migrations/1680084615_addQuoteWithImageBlock.ts
require() of ES modules is not supported.
require() of /Users/omni/repos/treyd/migrations/1680084615_addQuoteWithImageBlock.ts from
/Users/omni/repos/treyd/node_modules/@datocms/cli/lib/commands/migrations/run.js is an ES module file as it is a .ts file whose
nearest parent package.json contains "type": "module" which defines all .ts files in that package scope as ES modules.
Instead change the requiring code to use import(), or remove "type": "module" from /Users/omni/repos/treyd/package.json.
This is a sveltekit project that has a type=module in package.json
Can you email us at firstname.lastname@example.org with your migration script and the project URL that you are trying to apply it on? That error usually indicates trying to modify a model that does not exist, but we can take a closer look at it