storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
83.99k stars 9.23k forks source link

Cannot GET / error on Vue 3 #15225

Closed WoodyDark closed 3 years ago

WoodyDark commented 3 years ago

Describe the bug Everything seems to be compiling fine, but there's a 404 error after I run npm run storybook. image image image

System

Environment Info:

  System:
    OS: Linux 5.4 Linux Mint 20.1 (Ulyssa)
    CPU: (16) x64 Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz
  Binaries:
    Node: 14.16.0 - ~/.asdf/installs/nodejs/14.16.0/bin/node
    Yarn: 1.22.10 - ~/.asdf/installs/nodejs/14.16.0/.npm/bin/yarn
    npm: 6.14.11 - ~/.asdf/installs/nodejs/14.16.0/bin/npm
  Browsers:
    Chrome: 91.0.4472.101
    Firefox: 89.0
  npmPackages:
    @storybook/addon-actions: ^6.2.9 => 6.2.9 
    @storybook/addon-essentials: ^6.2.9 => 6.2.9 
    @storybook/addon-links: ^6.2.9 => 6.2.9 
    @storybook/addon-postcss: ^2.0.0 => 2.0.0 
    @storybook/vue3: ^6.2.9 => 6.2.9 

Additional context


{
 "dependencies": {
    "@headlessui/vue": "^1.2.0",
    "@heroicons/vue": "^1.0.1",
    "core-js": "^3.6.5",
    "dinero.js": "^1.8.1",
    "fuse.js": "^6.4.6",
    "pinia": "^2.0.0-beta.2",
    "register-service-worker": "^1.7.1",
    "vue": "^3.1.1",
    "vue-router": "^4.0.0-0",
    "vuex": "^4.0.0-0"
  },
  "devDependencies": {
    "@babel/core": "^7.14.5",
    "@storybook/addon-actions": "^6.2.9",
    "@storybook/addon-essentials": "^6.2.9",
    "@storybook/addon-links": "^6.2.9",
    "@storybook/addon-postcss": "^2.0.0",
    "@storybook/vue3": "^6.2.9",
    "@types/dinero.js": "^1.6.5",
    "@types/jest": "^24.9.1",
    "@typescript-eslint/eslint-plugin": "^4.18.0",
    "@typescript-eslint/parser": "^4.18.0",
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-plugin-e2e-cypress": "~4.5.0",
    "@vue/cli-plugin-eslint": "~4.5.0",
    "@vue/cli-plugin-pwa": "~4.5.0",
    "@vue/cli-plugin-router": "~4.5.0",
    "@vue/cli-plugin-typescript": "~4.5.0",
    "@vue/cli-plugin-unit-jest": "~4.5.0",
    "@vue/cli-plugin-vuex": "~4.5.0",
    "@vue/cli-service": "~4.5.0",
    "@vue/compiler-sfc": "^3.0.0",
    "@vue/eslint-config-prettier": "^6.0.0",
    "@vue/eslint-config-typescript": "^7.0.0",
    "@vue/test-utils": "^2.0.0-0",
    "autoprefixer": "^10.2.6",
    "babel-loader": "^8.2.2",
    "eslint": "^6.8.0",
    "eslint-plugin-prettier": "^3.3.1",
    "eslint-plugin-vue": "^7.0.0",
    "postcss": "^8.3.0",
    "prettier": "^2.2.1",
    "sass": "^1.26.5",
    "sass-loader": "^8.0.2",
    "stylelint-config-recommended": "^5.0.0",
    "tailwindcss": "^2.1.4",
    "typescript": "~4.1.5",
    "vue-cli-plugin-vite": "~1.1.5",
    "vue-jest": "^5.0.0-0",
    "vue-loader": "^16.2.0",
    "vuepress": "^2.0.0-beta.17"
  }
WoodyDark commented 3 years ago

Seems like maybe the installation wasn't correct or something. It works after I purged the node_modules folder and re-rannpm install