Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module '@intlify/devtools-types' or its corresponding type declarations. #2124

Open
4 tasks done
Daenara opened this issue Feb 27, 2025 · 0 comments
Open
4 tasks done
Labels
Status: Review Needed Request for review comments

Comments

@Daenara
Copy link

Daenara commented Feb 27, 2025

Reporting a bug?

I have switched an existing project to typescript (first time using typescript) and to debug something else I used vue-tsc on the project. I did not know about skipLibCheck so so I checked everything for type errors and I actually got errors in your files that I thought I would report. Actually installing @intlify/devtools-types (or just using skipLibCheck..., I found out about that while I war writing this issue) fixes the errors so I think you did not put it as a dependency (most likely because it just contains types). This is obviously not a huge issue, but I think it might be something you have not been aware of, so here is the report.

> vue-tsc --noEmit

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

6 import type { IntlifyDevToolsEmitter } from '@intlify/devtools-types';
                                              ~~~~~~~~~~~~~~~~~~~~~~~~~

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

7 import type { IntlifyDevToolsHookPayloads } from '@intlify/devtools-types';
                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~

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

8 import type { IntlifyDevToolsHooks } from '@intlify/devtools-types';
                                            ~~~~~~~~~~~~~~~~~~~~~~~~~

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

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


Found 4 errors in the same file, starting at: node_modules/@intlify/core-base/dist/core-base.d.ts:6

Expected behavior

No errors when using vue-tsc or a note in the documentation about this being expected and to use skipLibCheck in tsconfig.json when using vue-i18n with vue-tsc. Trying out a tool (and typescript) for the first time and running into undocumented errors outside of your own code makes for a miserable time since you are never sure if you did something wrong or if this is expected

Reproduction

https://github.com/bi-so-gmbh/typescript-test

System Info

System:
    OS: Linux 6.8 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-1260P
    Memory: 21.78 GB / 62.51 GB
    Container: Yes
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
  Browsers:
    Chrome: 133.0.6943.53
  npmPackages:
    @vitejs/plugin-vue: ^5.2.1 => 5.2.1 
    @vue/eslint-config-prettier: ^10.2.0 => 10.2.0 
    @vue/language-server: ^2.2.4 => 2.2.4 
    vite: 6.2.0 => 6.2.0 
    vite-plugin-vue-devtools: ^7.7.2 => 7.7.2 
    vite-plugin-vuetify: ^2.1.0 => 2.1.0 
    vue: ^3.5.13 => 3.5.13 
    vue-eslint-parser: ^9.4.3 => 9.4.3 
    vue-i18n: ^11.1.1 => 11.1.1 
    vue-router: ^4.5.0 => 4.5.0 
    vue-tsc: ^2.2.2 => 2.2.4 
    vuetify: ^3.7.14 => 3.7.14

Screenshot

No response

Additional context

No response

Validations

@Daenara Daenara added the Status: Review Needed Request for review comments label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Review Needed Request for review comments
Projects
None yet
Development

No branches or pull requests

1 participant