Skip to content
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

definePage doesn't work with webpack #223

Closed
tzhh0617 opened this issue Aug 30, 2023 · 1 comment
Closed

definePage doesn't work with webpack #223

tzhh0617 opened this issue Aug 30, 2023 · 1 comment

Comments

@tzhh0617
Copy link

tzhh0617 commented Aug 30, 2023

<template>
  <div>
  </div>
</template>

<script lang="ts" setup>
definePage({
  name: 'IndexPage'
})
</script>
 error  in ./src/pages/index.vue?definePage&vue

Module Error (from ./node_modules/.pnpm/vue-loader@17.2.2_vue@3.3.4_webpack@5.88.1/node_modules/vue-loader/dist/index.js):
At least one <template> or <script> is required in a single file component.

error demo:
https://github.com/tzhh0617/vue3-template

@tzhh0617 tzhh0617 changed the title definePage error when using webpack definePage doesn't work with webpack Aug 30, 2023
@posva
Copy link
Owner

posva commented Aug 30, 2023

Duplicate of #163

@posva posva marked this as a duplicate of #163 Aug 30, 2023
@posva posva closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2023
Repository owner locked and limited conversation to collaborators Aug 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants