Closed cawoodm closed 3 years ago
I solved this via using a tsconfig.json
file with the following content:
{
"compilerOptions": {
"allowSyntheticDefaultImports": true
}
}
And doing deno run --allow-env --allow-read --allow-net --config ./tsconfig.json path/to/your/file
.
The reason is that "https://cdn.skypack.dev/ms@2.1.2?dts" needs it. See error message:
TS2497 [ERROR]: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export.
export { default as ms } from "https://cdn.skypack.dev/ms@2.1.2?dts";
This issue appears to be a dupe of #144, thanks for the notes @tiloio, I’m sure that’ll come in handy!
Issue
deps.ts
is importing/exporting a default where none exists inrange-parsers@1.2.1
:Setup:
Details
It's weird because this code works on a different machine just fine.