Types broken since v3.0.25
When using versions v3.0.25 and greater (tested up to v3.0.27) typescript complains:
Could not find a declaration file for module 'mimetext'. '/<path>/node_modules/mimetext/dist/mimetext.node.es.js' implicitly has an 'any' type.
Working on this issue. In the meantime, try to import it like ... from 'mimetext/node', ... from 'mimetext/browser' and not the ... from 'mimetext'
We've rolled back to a stable version, in the future please mark changes that break imports as more than just a patch version bump.
I am experiencing the same issue with version 3.0.27. I had to force use version 3.0.24.
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
index.ts:5:35 - error TS2307: Cannot find module 'mimetext/node' or its corresponding type declarations.
5 import { createMimeMessage } from 'mimetext/node';
~~~~~~~~~~~~~~~
at createTSError (C:\Users\jekaj\AppData\Local\nvm\v22.13.0\node_modules\ts-node\src\index.ts:859:12)
at reportTSError (C:\Users\jekaj\AppData\Local\nvm\v22.13.0\node_modules\ts-node\src\index.ts:863:19)
at getOutput (C:\Users\jekaj\AppData\Local\nvm\v22.13.0\node_modules\ts-node\src\index.ts:1077:36)
at Object.compile (C:\Users\jekaj\AppData\Local\nvm\v22.13.0\node_modules\ts-node\src\index.ts:1433:41)
at Module.m._compile (C:\Users\jekaj\AppData\Local\nvm\v22.13.0\node_modules\ts-node\src\index.ts:1617:30)
at node:internal/modules/cjs/loader:1699:10
at Object.require.extensions.<computed> [as .ts] (C:\Users\jekaj\AppData\Local\nvm\v22.13.0\node_modules\ts-node\src\index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1313:32)
at Function._load (node:internal/modules/cjs/loader:1123:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14) {
diagnosticCodes: [ 2307 ]
}
Also rolled back to 3.0.24
We also had to roll back to 3.0.24 because imports using require are broken
We had the same issue. 3.0.24 is currently the way to go. Hope it will get fixed soon :)
Same issue. Guess the tsconfig or something here broke the types
Hello, We have the same issue upgrading to 3.0.27, downgrading to 3.0.24 resolve the issue.