Why test with setup nuxt is so slow and start many server and get error #1446
Unanswered
team-obi-wan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a test dire like this:
test/nuxt/server
i want to test the api
and when run vitest is very slow on setup.
`Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "planeat_manager", schema "public" at "localhost:33052"
🚀 Your database is now in sync with your Prisma schema. Done in 1.49s
Listening on http://127.0.0.1:55593
[error] [nuxt] error caught during app initialization Context conflict
at checkConflict (node_modules/unctx/dist/index.mjs:6:13)
at Object.set (node_modules/unctx/dist/index.mjs:40:9)
at callWithNuxt (node_modules/nuxt/dist/app/nuxt.js:221:16)
at node_modules/nuxt/dist/app/nuxt.js:38:41
at EffectScope.run (node_modules/@vue/reactivity/dist/reactivity.cjs.js:85:16)
at Object.runWithContext (node_modules/nuxt/dist/app/nuxt.js:38:31)
at applyPlugin (node_modules/nuxt/dist/app/nuxt.js:139:39)
at executePlugin (node_modules/nuxt/dist/app/nuxt.js:158:23)
at applyPlugins (node_modules/nuxt/dist/app/nuxt.js:189:11)
at initApp (node_modules/nuxt/dist/app/nuxt-vitest-app-entry.js:57:25)
[warn] [Vue warn]: There is already an app instance mounted on the host container.
If you want to mount another app on the same host container, you need to unmount the previous app by calling
app.unmount()first.Listening on http://127.0.0.1:55677
[error] [nuxt] error caught during app initialization Context conflict
at checkConflict (node_modules/unctx/dist/index.mjs:6:13)
at Object.set (node_modules/unctx/dist/index.mjs:40:9)
at callWithNuxt (node_modules/nuxt/dist/app/nuxt.js:221:16)
at node_modules/nuxt/dist/app/nuxt.js:38:41
at EffectScope.run (node_modules/@vue/reactivity/dist/reactivity.cjs.js:85:16)
at Object.runWithContext (node_modules/nuxt/dist/app/nuxt.js:38:31)
at applyPlugin (node_modules/nuxt/dist/app/nuxt.js:139:39)
at executePlugin (node_modules/nuxt/dist/app/nuxt.js:158:23)
at applyPlugins (node_modules/nuxt/dist/app/nuxt.js:189:11)
at initApp (node_modules/nuxt/dist/app/nuxt-vitest-app-entry.js:57:25)
[warn] [Vue warn]: There is already an app instance mounted on the host container.
If you want to mount another app on the same host container, you need to unmount the previous app by calling
app.unmount()first.Listening on http://127.0.0.1:55724
[error] [nuxt] error caught during app initialization Context conflict
at checkConflict (node_modules/unctx/dist/index.mjs:6:13)
at Object.set (node_modules/unctx/dist/index.mjs:40:9)
at callWithNuxt (node_modules/nuxt/dist/app/nuxt.js:221:16)
at node_modules/nuxt/dist/app/nuxt.js:38:41
at EffectScope.run (node_modules/@vue/reactivity/dist/reactivity.cjs.js:85:16)
at Object.runWithContext (node_modules/nuxt/dist/app/nuxt.js:38:31)
at applyPlugin (node_modules/nuxt/dist/app/nuxt.js:139:39)
at executePlugin (node_modules/nuxt/dist/app/nuxt.js:158:23)
at applyPlugins (node_modules/nuxt/dist/app/nuxt.js:189:11)
at initApp (node_modules/nuxt/dist/app/nuxt-vitest-app-entry.js:57:25)
[warn] [Vue warn]: There is already an app instance mounted on the host container.
If you want to mount another app on the same host container, you need to unmount the previous app by calling
app.unmount()first.Listening on http://127.0.0.1:55769
[error] [nuxt] error caught during app initialization Context conflict
at checkConflict (node_modules/unctx/dist/index.mjs:6:13)
at Object.set (node_modules/unctx/dist/index.mjs:40:9)
at callWithNuxt (node_modules/nuxt/dist/app/nuxt.js:221:16)
at node_modules/nuxt/dist/app/nuxt.js:38:41
at EffectScope.run (node_modules/@vue/reactivity/dist/reactivity.cjs.js:85:16)
at Object.runWithContext (node_modules/nuxt/dist/app/nuxt.js:38:31)
at applyPlugin (node_modules/nuxt/dist/app/nuxt.js:139:39)
at executePlugin (node_modules/nuxt/dist/app/nuxt.js:158:23)
at applyPlugins (node_modules/nuxt/dist/app/nuxt.js:189:11)
at initApp (node_modules/nuxt/dist/app/nuxt-vitest-app-entry.js:57:25)
[warn] [Vue warn]: There is already an app instance mounted on the host container.`
Beta Was this translation helpful? Give feedback.
All reactions