Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR_IMPORT_ASSERTION_TYPE_MISSING when attempting to revert #704

Open
jayce7 opened this issue Apr 9, 2023 · 0 comments
Open

ERR_IMPORT_ASSERTION_TYPE_MISSING when attempting to revert #704

jayce7 opened this issue Apr 9, 2023 · 0 comments

Comments

@jayce7
Copy link

jayce7 commented Apr 9, 2023

When attempting to undo a migration, I get the following error

    TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "file:///Users/path_to_my_file/migrations/_current_bak.json" needs an import assertion of type "json"
        at new NodeError (node:internal/errors:393:5)
        at validateAssertions (node:internal/modules/esm/assert:82:15)
        at defaultLoad (node:internal/modules/esm/load:84:3)
        at nextLoad (node:internal/modules/esm/loader:161:28)
        at ESMLoader.load (node:internal/modules/esm/loader:593:26)
        at ESMLoader.moduleProvider (node:internal/modules/esm/loader:445:22)
        at new ModuleJob (node:internal/modules/esm/module_job:63:26)
        at #createModuleJob (node:internal/modules/esm/loader:468:17)
        at ESMLoader.getModuleJob (node:internal/modules/esm/loader:422:34)
        at async Promise.all (index 0) {
      code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING'
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant