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

Vue 3 + @vitest/ui not working [stackblitz] #1169

Closed
6 tasks done
erwanv opened this issue Apr 19, 2022 · 1 comment
Closed
6 tasks done

Vue 3 + @vitest/ui not working [stackblitz] #1169

erwanv opened this issue Apr 19, 2022 · 1 comment

Comments

@erwanv
Copy link

erwanv commented Apr 19, 2022

Describe the bug

When trying to use Vue 3 + @vitest/ui we get ther following errors with the example:

TypeError: vite_ssr_import_1.defineComponent is not a function

Reproduction

{
  "name": "@vitest/test-vue",
  "private": true,
  "scripts": {
    "test": "vitest --ui",
    "coverage": "vitest run --coverage"
  },
  "dependencies": {
    "vue": "^3.2.32"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "latest",
    "@vitest/ui": "latest",
    "@vue/test-utils": "latest",
    "jsdom": "latest",
    "vitest": "latest"
  },
  "stackblitz": {
    "startCommand": "npm run test"
  }
}

System Info

Stackblitz

Used Package Manager

yarn

Validations

@sheremet-va
Copy link
Member

Duplicate of #553. Update Vite and Vitest to the latest versions.

chaii3 pushed a commit to chaii3/vitest that referenced this issue May 13, 2022
Co-authored-by: wangwenlu <wangwenlu@kuaishou.com>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
@github-actions github-actions bot locked and limited conversation to collaborators Jun 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants