intlify / bundle-tools

bundling for intlify i18n tools
MIT License
239 stars 37 forks source link

Missing dependencies and missing MessageFunctionInternal definition #296

Closed macdows closed 1 year ago

macdows commented 1 year ago

Reporting a bug?

Just upgraded @intlify/unplugin-vue-i18n to version 1.2.0 and I can't build my Vite app anymore because of the following issues:

node_modules/@intlify/core-base/dist/core-base.d.ts:645:77 - error TS2552: Cannot find name 'MessageFunctionInternal'. Did you mean 'MessageFunctionReturn'?

645 export declare type MessageFunction<T = string> = MessageFunctionCallable | MessageFunctionInternal<T>;
                                                                                ~~~~~~~~~~~~~~~~~~~~~~~

By looking into the file I saw this line which I guess is related? /* Excluded from this release type: MessageFunctionInternal */

node_modules/@intlify/core-base/dist/core-base.d.ts:8:38 - error TS2307: Cannot find module '@intlify/devtools-if' or its corresponding type declarations.

6 import type { IntlifyDevToolsEmitter } from '@intlify/devtools-if';
7 import type { IntlifyDevToolsHookPayloads } from '@intlify/devtools-if';
8 import { IntlifyDevToolsHooks } from '@intlify/devtools-if';
                                       ~~~~~~~~~~~~~~~~~~~~~~
node_modules/@intlify/core-base/dist/core-base.d.ts:10:41 - error TS2307: Cannot find module '@intlify/vue-devtools' or its corresponding type declarations.

10 import type { VueDevToolsEmitter } from '@intlify/vue-devtools';
                                           ~~~~~~~~~~~~~~~~~~~~~~~

Expected behavior

Reproduction

Issue Package

vite-plugin-vue-i18n

System Info

System:
    OS: macOS 13.3.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 330.63 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.13.0 - ~/.nvm/versions/node/v18.13.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.13.0/bin/yarn
    npm: 9.6.0 - ~/.nvm/versions/node/v18.13.0/bin/npm
    pnpm: 8.6.12 - ~/.nvm/versions/node/v18.13.0/bin/pnpm
  Browsers:
    Chrome: 116.0.5845.187
    Safari: 16.4
  npmPackages:
    vite: ^4.4.9 => 4.4.9
    vue: ^3.3.4 => 3.3.4
    vue-i18n: ^9.4.0 => 9.4.0

Screenshot

No response

Additional context

No response

Validations

kazupon commented 1 year ago

close, this issue was fixed at vue-i18n thanks!