Closed PhE closed 9 months ago
Having those import statements in a module ...
import { defineTransformer } from '@nuxt/content/transformers' // or import { defineTransformer } from '@nuxt/content/transformers/utils'
... raises errors in nuxt typecheck:
nuxt typecheck
error TS2307: Cannot find module '@nuxt/content/transformers' or its corresponding type declarations.
The app is working fine in npx bun run dev but raises type error in nuxt typecheck !
npx bun run dev
Since I also have trouble to get npx bun run generate to work, I want to fix all the type errors before.
npx bun run generate
No response
Here is the output part of nuxt typecheck showing the errors :
[...] modules/transformpdf/checkresult.ts:5:35 - error TS2307: Cannot find module '@nuxt/content/transformers' or its corresponding type declarations. 5 import { defineTransformer } from '@nuxt/content/transformers' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ modules/transformpdf/ignore.ts:4:35 - error TS2307: Cannot find module '@nuxt/content/transformers/utils' or its corresponding type declarations. 4 import { defineTransformer } from '@nuxt/content/transformers/utils' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Deleting the bun lock file did not solve the issue as it did for nuxt/nuxt#24698
By the way generate is working again, so we will ignore those typecheck errors for now.
Environment
Reproduction
Having those import statements in a module ...
... raises errors in
nuxt typecheck
:Describe the bug
The app is working fine in
npx bun run dev
but raises type error innuxt typecheck
!Since I also have trouble to get
npx bun run generate
to work, I want to fix all the type errors before.Additional context
No response
Logs
Here is the output part of
nuxt typecheck
showing the errors :