Closed alexey-sh closed 1 year ago
The error says it all. You need the type
field in package.json
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
You can just set moduleResolution
to Bundler
now in TypeScript 5.0
"moduleResolution": "Bundler"
Extension types are ugly.
Describe the bug
Unable to import.
Actual behavior
Getting error with
npx tsc
Expected behavior
no errors, like on got v11.8.6
Code to reproduce
package.json
tsconfig.json
I tried different target, module, lib but no luck. The code below works with got v11.8.6.
Checklist