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
Basic setup for local dev not working #7
Comments
Is there a working example of a Vue 3 app with vite? 😄 |
@onx2 |
My node version is up to date, could it be something else? @zzetao node --version
# v13.12.0 |
I was going to make this a component library so I have vue as a peer dep and dev, but I also tried as a regular dep and it isn't working |
Your code example works for me. |
|
Not sure if it was a versioning issue (presumably part of it), or me missing a part of the readme. The local dev section is watching For anyone interested in the most basic version of this working... This is what I ended up with: // Comp.vue
<template>
<button @click="count++">{{ count }}</button>
</template>
<script>
export default {
data: () => ({ count: 0 })
}
</script> <!-- index.html -->
<div id="app"></div>
<script type="module">
import { createApp } from 'vue'
import Comp from './Comp.vue'
createApp(Comp).mount('#app')
</script>
{
"scripts": {
"dev": "vite"
},
"dependencies": {
"vue": "^3.0.0-beta.3"
},
"devDependencies": {
"@vue/compiler-sfc": "^3.0.0-beta.3",
"vite": "^0.4.0"
}
} @yyx990803 @zzetao thanks for helping! |
After following the instruction in the readme, I ended up with an error.
I'm using the vue-next webpack template and added a new npm script for vite after
yarn add -D vite
. I then updated my index.html to what was in the instructions, created a Comp.vue component insrc/
but it isn't working. Am I missing something?// Comp.vue
// index.html
// package.json
The text was updated successfully, but these errors were encountered: