-
Notifications
You must be signed in to change notification settings - Fork 109
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
deno run on a built bids-validator.js: Attempted to load JSON module without specifying "type" #1943
Comments
Here's the relevant code: bids-validator/bids-validator/src/setup/loadSchema.ts Lines 21 to 23 in dc61d0f
This is an issue with how the module is transpiled, it might be configuration or a bug in esbuild or the Deno module plugin.
Imports are always cached in deno. You can refresh the cache with |
FWIW, adding ❯ deno run --reload --allow-read --allow-write --allow-env --allow-net --allow-run /tmp/bids-validator/bids-validator.js 7t_trt --ignoreNiftiHeaders
TypeError: Attempted to load JSON module without specifying "type": "json" attribute in the import statement.
at async loadSchema (file:///tmp/bids-validator/bids-validator.js:8513:26)
at async validate (file:///tmp/bids-validator/bids-validator.js:9254:18)
at async main (file:///tmp/bids-validator/bids-validator.js:9458:24)
at async file:///tmp/bids-validator/bids-validator.js:9479:1 {
code: "ERR_MODULE_NOT_FOUND"
}
Warning, could not load schema from https://bids-specification.readthedocs.io/en/latest/schema.json, falling back to internal version
... note that this is on "compiled" (deno-build) version of bids-validator.js |
Trying to run out of
deno-build
branch using wrapper proposed inbut getting
that is with
so there is
--allow-net
if that is of importance.So it seems to do use some internal copy of schema but not clear why it fails to get/use that one from a URL if it wants so (should it download it every time? sounds a bit too much)
The text was updated successfully, but these errors were encountered: