Subscribe on changes!

Crash when adding a comment after an import in script setup

avatar
Sep 12th 2020

Version

3.0.0-rc.10

Reproduction link

https://github.com/gawlk/vue-bug-comment-after-import

Steps to reproduce

  1. yarn create vite-app test-comment-crash
  2. yarn && yarn add mediasoup-client
  3. Go to App.vue and add the setup tag to <script>
  4. Lauch the app
  5. Add this import mediasoup from 'mediasoup-client' // remove this comment and it'll work BEFORE import HelloWorld from './components/HelloWorld.vue' otherwise it won't crash, it can't be after the latest import
  6. See that is crashes
  7. Remove the comment and see that it works

What is expected?

To work flawlessly

What is actually happening?

The app crashes because of a comment

avatar
Sep 12th 2020

Please open an issue at https://github.com/vitejs/vite