antlr / antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
http://antlr.org
BSD 3-Clause "New" or "Revised" License
17.08k stars 3.27k forks source link

exports is not defined - Javascript #2654

Open lietochris opened 5 years ago

lietochris commented 5 years ago

Hi, im working with "vue cli" but when I compile the code it throws this message, I already tried to find a solution and I think it is a babel error, because when deactivating it it works perfectly. Any possible solution?

ReferenceError: exports is not defined at eval (GramaticaParser.js?3188:196) at Module../src/assets/gramatica/GramaticaParser.js (5.js:46) at webpack_require__ (app.js:770) at fn (app.js:130) at eval (Archivo.vue?fcc6:13) at Module../node_modules/babel-loader/lib/index.js?!./node_modules/@quasar/app/lib/webpack/loader.auto-import.js?kebab!./node_modules/vue-loader/lib/index.js?!./src/pages/Archivo.vue?vue&type=script&lang=js& (5.js:11) at webpack_require__ (app.js:770) at fn (app.js:130) at eval (Archivo.vue?b81d:1) at Module../src/pages/Archivo.vue?vue&type=script&lang=js& (5.js:70)

ericvergnaud commented 5 years ago

hi, please move this to the google discussion group

Le 23 sept. 2019 à 11:05, lietochris notifications@github.com a écrit :

Hi, im working with "vue cli" but when I compile the code it throws this message, I already tried to find a solution and I think it is a babel error, because when deactivating it it works perfectly. Any possible solution?

ReferenceError: exports is not defined at eval (GramaticaParser.js?3188:196) at Module../src/assets/gramatica/GramaticaParser.js (5.js:46) at webpack_require (app.js:770) at fn (app.js:130) at eval (Archivo.vue?fcc6:13) at Module../node_modules/babel-loader/lib/index.js?!./node_modules/@quasar/app/lib/webpack/loader.auto-import.js?kebab!./node_modules/vue-loader/lib/index.js?!./src/pages/Archivo.vue?vue&type=script&lang=js& (5.js:11) at webpack_require (app.js:770) at fn (app.js:130) at eval (Archivo.vue?b81d:1) at Module../src/pages/Archivo.vue?vue&type=script&lang=js& (5.js:70)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/antlr/antlr4/issues/2654?email_source=notifications&email_token=AAZNQJGOXN7YQL2B3JRR5ETQLAXADA5CNFSM4IZF364KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HM5WTMA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZNQJDTEVN2UQNZLJ4BPILQLAXADANCNFSM4IZF364A.