Closed dsherret closed 1 year ago
Oh, maybe not a bug. Node esm also errors:
> node main.mjs
node:internal/errors:484
ErrorCaptureStackTrace(err);
^
TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "file:///V:/scratch/node_modules/.deno/all-the-package-names@2.0.838/node_modules/all-the-package-names/names.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:163:28)
at ESMLoader.load (node:internal/modules/esm/loader:605:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
at new ModuleJob (node:internal/modules/esm/module_job:63:26)
at #createModuleJob (node:internal/modules/esm/loader:480:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34)
at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:78:21) {
code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING'
}