-
-
Notifications
You must be signed in to change notification settings - Fork 382
Description
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.14Screenshot
No response
Additional context
No response
Validations
- Read the Contributing Guidelines
- Read the Documentation
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussions