using script setup and script src, show: <script> cannot use the "src" attribute when <script setup> is also present because they must be processed together. #13365
Unanswered
bigiCrab
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Two script block like this will work:
but when separate the script to src it will show
<script> cannot use the "src" attribute when <script setup> is also present because they must be processed together.
I want to use nuxt definePageMeta and follow team convension to use <script src>, is there a way to do this?
Thanks for the help. 🙏
repoduction: https://stackblitz.com/edit/vitejs-vite-rzebjn3m?file=src%2FApp.vue
Beta Was this translation helpful? Give feedback.
All reactions