Skip to content

An error occurred using modal.vue #68

@nckf

Description

@nckf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions