-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Flaky error "end is out of bounds" while working with <script setup> #1620
Labels
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.0.0-rc.1
Reproduction link
https://github.com/icehaunter/vue3-setup-bug-repro
Steps to reproduce
npm i
and runnpm run dev
localhost:3000
in browsersrc/components/HelloWorld.vue
<script setup>
block adding and removing an enter multiple times, saving each time. Editing template by changing letters also works, but reproduces much slower.What is expected?
Module is recompiled correctly every time
What is actually happening?
An error occurs in console:
An error occurs in the browser:
I basically initialized Vite application, switched to TypeScript and decided to try out the new
<script setup>
syntax. As far as I can tell, the error lies in Vue compiler and not in Vite, because Vite just prints out an error.I could not reproduce the error with Vue CLI environment because I couldn't get it to process the
<script setup>
block at all.The text was updated successfully, but these errors were encountered: