babel-plugin-transform-vue-jsx icon indicating copy to clipboard operation
babel-plugin-transform-vue-jsx copied to clipboard

Uncaught ReferenceError: exports is not defined

Open kvedantmahajan opened this issue 7 years ago • 0 comments

Alright, I am getting the error Uncaught ReferenceError: exports is not defined in console after I was able to run my project via babel.config.js file by the below mentioned configuration

module.exports = { presets: ["@vue/app"], plugins: ["transform-vue-jsx"] }; I'm using Vue CLI generated project for this. Although the repo mentions use of .babelrc file, but config.babel.js is already defined. If you notice I've skipped the preset env here. Adding this preset alongwith @vue/app crashes my project.

How can I address the message in console?

Using Vue CLI version 3.0.3 and Vue version - 2.5.17

kvedantmahajan avatar Oct 05 '18 06:10 kvedantmahajan