Open
Description
Expected Behavior
I expected TypeScript to not complain since there are built-in declarations
Actual Behavior
TypeScript throws an error
main.ts:1:17 - error TS2306: File 'G:/experiments/node_modules/native-url/third_party/url.d.ts' is not a module.
1 import url from "native-url";
Steps to Reproduce the Problem
- Create a TypeScript project with both '@types/node' and 'native-url' installed
- Try to compile it
tsconfig.json:
{
"compilerOptions": {
"strict": true
}
}
Specifications
- Version: Node v14.15.1
- Platform: Windows 10
Metadata
Metadata
Assignees
Labels
No labels