We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://stackblitz.com/edit/github-3etpwp?file=package.json
If you have test files in your pages folder importing @nuxt/test-utils/runtime, the following error pops up when starting the project
pages
@nuxt/test-utils/runtime
ERROR This module cannot be imported in the Vue part of your app. [importing @nuxt/test-utils/runtime from pages/<testname>.ts]
The error does not seem to have effect on the app startup itself (it's probably more a warning).
The error goes away when moving the test out of the pages folder.
No response
The text was updated successfully, but these errors were encountered:
It seems that .nuxtignore can be used to avoid this. https://nuxt.com/docs/guide/directory-structure/nuxtignore
.nuxtignore
// .nuxtignore pages/*.nuxt.spec.ts
Sorry, something went wrong.
No branches or pull requests
Environment
Reproduction
https://stackblitz.com/edit/github-3etpwp?file=package.json
Describe the bug
If you have test files in your
pages
folder importing@nuxt/test-utils/runtime
, the following error pops up when starting the projectThe error does not seem to have effect on the app startup itself (it's probably more a warning).
The error goes away when moving the test out of the
pages
folder.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: