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

An error occurred using modal.vue #68

Open
nckf opened this issue Dec 12, 2019 · 0 comments
Open

An error occurred using modal.vue #68

nckf opened this issue Dec 12, 2019 · 0 comments

Comments

@nckf
Copy link

nckf commented Dec 12, 2019

I tried to use App.vue in my larva 6 project

ERROR in ./node_modules/vue2-admin-lte/src/components/Modal.vue?vue&type=template&id=796e3219&lang=html& (./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/html-loader!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue2-admin-lte/src/components/Modal.vue?vue&type=template&id=796e3219&lang=html&)
Module Error (from ./node_modules/vue-loader/lib/loaders/templateLoader.js):
(Emitted value instead of an instance of Error)
  Errors compiling template:
  text "module.exports = "\n" outside root element will be ignored.
......

open the Model.vue

change the first row

<template lang="html">

to

<template>

run...
the trouble was solved.

How did the trouble come about?Is there a better way than changing files?

I'm sorry, I can't speak English

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

1 participant