-
-
Notifications
You must be signed in to change notification settings - Fork 132
Description
Describe the bug
error: Import 'https://deno.land/x/yaml@v2.0.0-7/src/nodes/Scalar.js' failed: 404 Not Found
at https://deno.land/x/yaml@v2.0.0-7/src/index.ts:22:0
To Reproduce
Steps to reproduce the behaviour.
- Install Deno
- Run
deno eval "export * as YAML from 'https://deno.land/x/yaml@v2.0.0-7/src/index.ts'"
Expected behaviour
I expect the module to be loaded successfully, no errors
Versions (please complete the following information):
- Environment:
deno --version
deno 1.13.0 (release, x86_64-apple-darwin)
v8 9.3.345.11
typescript 4.3.5
yaml
:v2.0.0-7
Additional context
Full stack:
deno eval "export * as YAML from 'https://deno.land/x/yaml@v2.0.0-7/src/index.ts'"
Download https://deno.land/x/yaml@v2.0.0-7/src/nodes/YAMLSeq.js
Download https://deno.land/x/yaml@v2.0.0-7/src/doc/Document.js
Download https://deno.land/x/yaml@v2.0.0-7/src/parse/lexer.js
Download https://deno.land/x/yaml@v2.0.0-7/src/schema/tags
Download https://deno.land/x/yaml@v2.0.0-7/src/parse/parser.js
Download https://deno.land/x/yaml@v2.0.0-7/src/nodes/Alias.js
Download https://deno.land/x/yaml@v2.0.0-7/src/nodes/Node.js
Download https://deno.land/x/yaml@v2.0.0-7/src/nodes/Scalar.js
Download https://deno.land/x/yaml@v2.0.0-7/src/errors.js
Download https://deno.land/x/yaml@v2.0.0-7/src/nodes/Pair.js
Download https://deno.land/x/yaml@v2.0.0-7/src/parse/cst.js
Download https://deno.land/x/yaml@v2.0.0-7/src/visit.js
Download https://deno.land/x/yaml@v2.0.0-7/src/parse/line-counter.js
Download https://deno.land/x/yaml@v2.0.0-7/src/nodes/YAMLMap.js
Download https://deno.land/x/yaml@v2.0.0-7/src/public-api.js
Download https://deno.land/x/yaml@v2.0.0-7/src/schema/types
Download https://deno.land/x/yaml@v2.0.0-7/src/options.js
Download https://deno.land/x/yaml@v2.0.0-7/src/compose/composer.js
Download https://deno.land/x/yaml@v2.0.0-7/src/schema/Schema.js
error: Import 'https://deno.land/x/yaml@v2.0.0-7/src/nodes/YAMLSeq.js' failed: 404 Not Found
at https://deno.land/x/yaml@v2.0.0-7/src/index.ts:24:0
The files of course are all typescript in the repository and it fails trying to download them because in the code they're all referencing each other as .js
. I believe in node it works because its running all the transpiled files after typescript gets them but in Deno that transformation is transparent and it requires the references to be correct.
I know there are a couple of ways to solve this, such as using some auto-esm transpiler, or perhaps you have the JS version published somewhere that I'm not seeing... but I didn't see any documentation in your readme on the way you're intending it to be supported so I thought I'd ask here.