Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Companion: ReferenceError

Hi,

 

Does anyone know what is this error about? I don't have a file Companion.js in my structure.

 

[11:56:23] Companion: ReferenceError: module is not defined
? at companion.js:48,1
[11:56:23] Companion: Uncaught ReferenceError: module is not defined (companion.js:48,1

 

Thank you,

Parag

Best Answer
0 Votes
4 REPLIES 4

the module 'module' you are trying to reference in companion.js is not defined. The first instance of this occurring is on line 48 of companion.js . Click on 'companion.js:48,1' and see where it takes you.

Best Answer
0 Votes

I don't have the file companion.js in my project. I cant click it.

Best Answer
0 Votes

you will have to send a screenshot of the error including your file structure or just copy the contents of the files somewhere else and create a new project.

Best Answer
0 Votes

Do you by chance have the `export` keyword in your companion/index.js? That transpiles into an assignment to module.exports, which doesn't exist or make sense for the entry point. Removing it should address this.

Best Answer
0 Votes