-
Notifications
You must be signed in to change notification settings - Fork 133
Closed
Description
Trying to use amplitude-js on node 8.8.1
I got this error when I run: const amplitude = require('amplitude-js');
ReferenceError: window is not defined
at /root/app/node_modules/amplitude-js/amplitude.js:2427:8
at commonjsGlobal (/root/app/node_modules/amplitude-js/amplitude.js:2:82)
at Object.<anonymous> (/root/app/node_modules/amplitude-js/amplitude.js:5:2)
at Module._compile (module.js:612:30)
at Object.Module._extensions..js (module.js:623:10)
at Module.load (module.js:531:32)
at tryModuleLoad (module.js:494:12)
at Function.Module._load (module.js:486:3)
at Module.require (module.js:556:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/root/app/src/helpers/amplitude.js:3:19)
at Module._compile (module.js:612:30)
at Object.Module._extensions..js (module.js:623:10)
at Module.load (module.js:531:32)
at tryModuleLoad (module.js:494:12)
at Function.Module._load (module.js:486:3)
at Module.require (module.js:556:17)
at require (internal/module.js:11:18)
...
stopdropandrew, ajcumine, juliaschiller150, efegurkan07, pavelvlasov and 6 more
Metadata
Metadata
Assignees
Labels
No labels