nuxt / vite

⚡ Vite Experience with Nuxt 2

Home Page:https://vite.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

in components use require components happen Error

QTTQ opened this issue · comments

commented

Versions

nuxt-vite:
nuxt:

Reproduction

Description

<script lang="ts"> import { Component, Vue, Emit, Prop} from 'vue-property-decorator' @component({ name:"allgame", layout:function(context){return 'defaultLayout'}, components: { logoSearch: require('components/comm/logoSearch/index.vue').default, breadCrumb: require('components/comm/breadCrumb/index.vue').default, selectAllGame: require('components/comm/allGame/selectAllGame.vue').default, }, async asyncData({query, req}: any){ } }) ------------------------------------- Error Cannot find module 'components/comm/logoSearch/index.vue' from 'E:\dianjinghou\demo'