Invalid token on Logger.js

on Ubuntu 20.04 after npm install

/home/ubuntu/smartchurch/node_modules/mediasoup/node/lib/Logger.js:7
#debug;
^

SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/ubuntu/smartchurch/node_modules/mediasoup/node/lib/index.js:4:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)

at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)

Any help on this please!!!

That’s a private field. Check the version of Node.js, you probably need to upgrade. Private fields first appeared in v12.0.0.

1 Like

Thanks mate, totally fixed my bug

is there a way i can vote you like we do on stackoverroof ? :grinning:

Just mark response as a solution