We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I expected 'native-url' to be a drop-in replacement for the URL class available in Node for files that are used in the web browser only.
TypeScript compilation fails with
node_modules/@types/node/url.d.ts:76:11 - error TS2300: Duplicate identifier 'URL'. 76 class URL { ~~~ node_modules/native-url/third_party/url.d.ts:100:9 100 class URL { ~~~ 'URL' was also declared here.
So far I could only workaround by mapping the declarations for 'native-url' to some bogus file by adding to the tsconfig.json the following lines:
tsconfig.json
"baseUrl": ".", "paths": { "native-url": ["types/native-url"] }
I wonder if there is a better solution, or if I am doing it all wrong, or if this should be addressed by the maintainers of the library.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Expected Behavior
I expected 'native-url' to be a drop-in replacement for the URL class available in Node for files that are used in the web browser only.
Actual Behavior
TypeScript compilation fails with
Steps to Reproduce the Problem
So far I could only workaround by mapping the declarations for 'native-url' to some bogus file by adding to the
tsconfig.json
the following lines:I wonder if there is a better solution, or if I am doing it all wrong, or if this should be addressed by the maintainers of the library.
The text was updated successfully, but these errors were encountered: