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

fix: @vitejs/plugin-vue requires vue (>=3.2.13) #109

Merged
merged 1 commit into from
Dec 4, 2021

Conversation

suzaku
Copy link
Contributor

@suzaku suzaku commented Dec 4, 2021

Got the following error when running yarn dev in my environment:

yarn run v1.22.10
$ vite --mode dev
failed to load config from /Users/satoru/projects/bytebase/frontend/vite.config.ts
error when starting dev server:
Error: @vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependency tree.
    at Object.<anonymous> (/Users/satoru/projects/bytebase/frontend/node_modules/@vitejs/plugin-vue/dist/index.js:4073:11)
    at Module._compile (node:internal/modules/cjs/loader:1095:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/satoru/projects/bytebase/frontend/vite.config.ts:30:36)
    at Module._compile (node:internal/modules/cjs/loader:1095:14)
    at Object.require.extensions.<computed> [as .ts] (/Users/satoru/projects/bytebase/frontend/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:68713:20)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Copy link
Collaborator

@tianzhou tianzhou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks! Happened in my local env as well.

@tianzhou
Copy link
Collaborator

tianzhou commented Dec 4, 2021

@LiuJi-Jim @ecmadao

@suzaku
Copy link
Contributor Author

suzaku commented Dec 4, 2021

I don't understand the automatically generated changes in the file frontend/components.d.ts. The file's changed after running yarn or yarn dev.

@suzaku
Copy link
Contributor Author

suzaku commented Dec 4, 2021

Take your time, it's weekend. 😄

@tianzhou tianzhou merged commit 537a1eb into bytebase:main Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants