yansenlei/VJsoneditor

Error trying to import

Opened this issue · 1 comments

I installed the package, and then tried to import it globally using exact documentation in the readme,

came back with an error:


ERROR in ./node_modules/v-jsoneditor/src/VueJsoneditor.vue?vue&type=template&id=43c7e374&scoped=true&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/v-jsoneditor/src/VueJsoneditor.vue?vue&type=template&id=43c7e374&scoped=true&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.

@timothymarois
Thank you for your feedback. I try to import it globally using... Everything is normal. Any other clues?