Closed Jakousa closed 1 year ago
The types stuff is never ending. Is there a way to do this in the package.json instead of adding code?
Hi all,
Since this change we have observed the following error in our application
node_modules/dotenv/lib/main.d.ts:3:26 - error TS2307: Cannot find module 'node:url' or its corresponding type declarations.
3 import type { URL } from 'node:url';
Is there something additional we need to add to make this work?
Update: Our project was using @types/node@13
- bumping this to at either @types/node@14
or @16
works
(@18
didn't work)
Thank you. For anyone else experiencing @TylerHaigh's issue do the same for now.
I might consider reverting this PR. It is getting annoying how type changes have so many side effects for others - causing perfectly fine working software to cause failures.
I'm also facing this error! Though mine is slightly different
node_modules/dotenv/lib/main.d.ts:3:26 - error TS2307: Cannot find module 'node:url' or its corresponding type declarations.
3 import type { URL } from 'node:url';
~~~~~~~~~~
What:
Adds missing import to types.
Why:
The types are missing import which results in
See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/19799.