GoogleChromeLabs / native-url

Node's url module implemented using the built-in URL API.
https://npm.im/native-url
Apache License 2.0
284 stars 11 forks source link

'node_modules/native-url/third_party/url.d.ts' is not a module. #34

Open thishussein opened 3 years ago

thishussein commented 3 years ago

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";

image

Steps to Reproduce the Problem

  1. Create a TypeScript project with both '@types/node' and 'native-url' installed
  2. Try to compile it

tsconfig.json:

{
  "compilerOptions": {
    "strict": true
  }
}

Specifications

ScriptedAlchemy commented 3 years ago

Can we get some movement on this fix?

niksy commented 2 years ago

What can we help with to get this merged?