intlify / vue-i18n

Vue I18n for Vue 3

Home Page:https://vue-i18n.intlify.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

regression: wrong `d.ts` of `@intlify/message-compiler`

kazupon opened this issue · comments

          @kazupon This was [patched in v9.10.2](https://stackblitz.com/edit/vitejs-vite-dgp1ps?file=package.json) but [regressed in v9.11.0](https://stackblitz.com/edit/vitejs-vite-5sfnez?file=package.json).

Updated error output:

node_modules/@intlify/message-compiler/dist/message-compiler.d.ts:1:23 - error TS2688: Cannot find type definition file for '.pnpm/source-map-js@1.2.0/node_modules/source-map-js'.

1 /// <reference types=".pnpm/source-map-js@1.2.0/node_modules/source-map-js" />
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@intlify/message-compiler/dist/message-compiler.d.ts:2:23 - error TS2688: Cannot find type definition file for 'node_modules/.pnpm/source-map-js@1.0.2/node_modules/source-map-js/source-map'.

2 /// <reference types="node_modules/.pnpm/source-map-js@1.0.2/node_modules/source-map-js/source-map" />
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 2 errors in the same file, starting at: node_modules/@intlify/message-compiler/dist/message-compiler.d.ts:1

Originally posted by @shengslogar in #1760 (comment)

Thanks for the quick fix!! 🙏