You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using typescript 5.1.3. import * as windows1251 from 'windows-1251';
cause the next error Could not find a declaration file for module 'windows-1251'. '/app/node_modules/windows-1251/windows-1251.mjs' implicitly has an 'any' type. There are types at '/app/node_modules/windows-1251/windows-1251.d.ts', but this result could not be resolved when respecting package.json "exports". The 'windows-1251' library may need to update its package.json or typings.
As far as i know types for *.mjs files should have *.d.mts extension (see 1, 2). And "types" field in package.json is not necessary.
Can you fix it? Or i can make a pull request if you don't mind.
The text was updated successfully, but these errors were encountered:
I'm using typescript 5.1.3.
import * as windows1251 from 'windows-1251';
cause the next error
Could not find a declaration file for module 'windows-1251'. '/app/node_modules/windows-1251/windows-1251.mjs' implicitly has an 'any' type. There are types at '/app/node_modules/windows-1251/windows-1251.d.ts', but this result could not be resolved when respecting package.json "exports". The 'windows-1251' library may need to update its package.json or typings.
As far as i know types for
*.mjs
files should have*.d.mts
extension (see 1, 2). And "types" field in package.json is not necessary.Can you fix it? Or i can make a pull request if you don't mind.
The text was updated successfully, but these errors were encountered: