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
Sorry, don't have time to leave a proper bug report, but just wanted to flag this sooner rather than later.
After upgrading to TypeScript 4.9.3, this plugin fails with an error message like:
TypeError: path.charCodeAt is not a function
at getEncodedRootLength (.../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/lib/typescript.js:7683:24)
If you log the path, it (or Rollup? it's not clear) is returning { pos: 22, end: 27, fileName: 'react' } when resolving React for a .d.ts file like:
The resolved moduleName is not a string, so TypeScript crashes.
I installed versions of TypeScript 4.6.4-4.9.3 and from 4.7 on, this fails.
The text was updated successfully, but these errors were encountered:
matthew-dean
changed the title
rollup-plugin-ts not compatible with TypeScript 4.9.3
rollup-plugin-ts not compatible with TypeScript 4.7-4.9
Nov 22, 2022
Sorry, don't have time to leave a proper bug report, but just wanted to flag this sooner rather than later.
After upgrading to TypeScript 4.9.3, this plugin fails with an error message like:
If you log the path, it (or Rollup? it's not clear) is returning
{ pos: 22, end: 27, fileName: 'react' }
when resolving React for a.d.ts
file like:The resolved moduleName is not a string, so TypeScript crashes.
I installed versions of TypeScript 4.6.4-4.9.3 and from 4.7 on, this fails.
The text was updated successfully, but these errors were encountered: