vitest-dev / vitest

Next generation testing framework powered by Vite.
https://vitest.dev
MIT License
12.94k stars 1.16k forks source link

TypeError: Cannot read properties of null (reading 'isCE') #1455

Closed enrtama closed 2 years ago

enrtama commented 2 years ago

Describe the bug

Wen running vitest --ui I cannot visualize it due to an error: TypeError: Cannot read properties of null (reading 'isCE')

Reproduction

Run vitest --ui

System Info

"devDependencies": {
    "@babel/eslint-parser": "^7.18.2",
    "@types/node": "^17.0.41",
    "@vitejs/plugin-vue": "^2.3.3",
    "@vitest/ui": "^0.14.1",
    "@vue/test-utils": "^2.0.0",
    "@wdio/cli": "^7.20.1",
    "@wdio/local-runner": "^7.20.1",
    "@wdio/mocha-framework": "^7.20.0",
    "@wdio/spec-reporter": "^7.20.0",
    "@wdio/sync": "^7.20.1",
    "c8": "^7.11.3",
    "chromedriver": "^101.0.0",
    "eslint": "^8.17.0",
    "eslint-config-prettier": "^8.5.0",
    "eslint-plugin-vue": "^9.1.0",
    "eslint-plugin-webdriverio": "^1.0.1",
    "jsdom": "^19.0.0",
    "prettier": "^2.6.2",
    "pug": "^3.0.2",
    "pug-plain-loader": "^1.1.0",
    "sass": "^1.52.2",
    "ts-node": "^10.8.1",
    "typescript": "^4.5.4",
    "vite": "^2.9.9",
    "vite-plugin-eslint": "^1.6.1",
    "vitest": "^0.14.1",
    "vue-tsc": "^0.34.7",
    "wdio-chromedriver-service": "^7.3.2"
  }

Used Package Manager

yarn

Validations

jannikegger commented 2 years ago

Hey :) Same issue occurs to me. As an addition - in my console also the error Cannot read properties of null (reading 'refs') shows up.

Used Package Manager npm

sheremet-va commented 2 years ago

Fixed in 0.14.2

jannikegger commented 2 years ago

@enrtama did 0.14.2 fixed it for you? I just updated my version number and still getting the same error :(

enrtama commented 2 years ago

Yes, it's actually fixed for me!

userquin commented 2 years ago

@enrtama did 0.14.2 fixed it for you? I just updated my version number and still getting the same error :(

You should include the 0.14.2 version on vitest and @vitest/ui dev dependencies.

Vitest UI Test (0.14.2 + Vite 2.9.9)

jannikegger commented 2 years ago

@userquin argh that was dumb. while beeing in a meeting rush I totally forgot updating the ui dependency. Many Thanks!