07-22-2019 21:01
07-22-2019 21:01
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 Answer07-22-2019 23:04
07-22-2019 23:04
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 Answer07-22-2019 23:14
07-22-2019 23:14
I don't have the file companion.js in my project. I cant click it.
Best Answer07-22-2019 23:26
07-22-2019 23:26
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 Answer07-24-2019 09:52
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
07-24-2019 09:52
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