native-url icon indicating copy to clipboard operation
native-url copied to clipboard

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

Open thishussein opened this issue 3 years ago • 2 comments

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

  • Version: Node v14.15.1
  • Platform: Windows 10

thishussein avatar Mar 08 '21 15:03 thishussein

Can we get some movement on this fix?

ScriptedAlchemy avatar Apr 22 '21 17:04 ScriptedAlchemy

What can we help with to get this merged?

niksy avatar Sep 28 '21 12:09 niksy