Skip to content

<script setup> is not working on production build [bug] #1010

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

Closed
zizyzhang opened this issue Apr 24, 2021 · 1 comment
Closed

<script setup> is not working on production build [bug] #1010

zizyzhang opened this issue Apr 24, 2021 · 1 comment

Comments

@zizyzhang
Copy link

My environment :

  • MacBook Pro, M1 chip
  • Node Version: 15.14
  • vue : 3.0.11

How to repeat the bug:

  1. flowing the v3 guide to create a new project using vue-cli
  2. change the App.vue file to <script setup> style
  3. run npm serve : everything is fine
  4. run npm build then serve dist : nothing is rendered

Notes:

Same problem is found here : vuejs/vue-cli#6282

@zizyzhang zizyzhang changed the title <script setup> is not working on production build <script setup> is not working on production build [bug] Apr 24, 2021
@NataliaTepluhina
Copy link
Member

I'm closing this issue on the docs repo because I can't find out how it's related to documentation. Also, we already have issues on Vue CLI and core repositories

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

No branches or pull requests

2 participants