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

fix: avoid error message with tsc and nuxt test-utils #911

Merged
merged 1 commit into from
Aug 13, 2024
Merged

fix: avoid error message with tsc and nuxt test-utils #911

merged 1 commit into from
Aug 13, 2024

Conversation

vbrajon
Copy link
Contributor

@vbrajon vbrajon commented Aug 12, 2024

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

An error message like this appears:

[1:39:59 PM] ERROR 1:39:59 PM [vite] Pre-transform error: Failed to resolve import "/@vite-plugin-checker-runtime-entry" from "node_modules/nuxt/dist/app/entry.js". Does the file exist?

With a empty nuxt project and the following config:

npm i --save-dev @nuxt/test-utils vitest @vue/test-utils happy-dom playwright-core
npm i --save-dev @vitest/ui
npm i --save-dev vue-tsc typescript
export default defineNuxtConfig({
  compatibilityDate: "2024-04-03",
  devtools: { enabled: true },
  modules: ["@nuxt/test-utils"],
  typescript: {
    typeCheck: true,
  },
  testUtils: {
    startOnBoot: true,
  },
})

See this reproduction link: https://stackblitz.com/edit/github-hxk7b6

@vbrajon vbrajon requested a review from danielroe as a code owner August 12, 2024 12:00
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Aug 12, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 12, 2024
@danielroe danielroe merged commit 6cdfdfb into nuxt:main Aug 13, 2024
4 checks passed
@github-actions github-actions bot mentioned this pull request Aug 13, 2024
@vbrajon vbrajon deleted the patch-1 branch August 26, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants