Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token . - ...options?.modules #2131

Closed
devasishg opened this issue May 10, 2022 · 5 comments
Closed

Unexpected token . - ...options?.modules #2131

devasishg opened this issue May 10, 2022 · 5 comments
Labels

Comments

@devasishg
Copy link

Environment:

  • Node.js Version: v11.2.0
  • Redis Server Version: 5.0.3
  • Node Redis Version: 4.0.6
  • Platform: node:11.2.0-alpine + any docker image

usr/src/app/node_modules/redis/dist/index.js:42
...options?.modules
^

SyntaxError: Unexpected token .
at Module._compile (internal/modules/cjs/loader.js:760:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/usr/src/app/config/redis_connector.js:2:15)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
root@ee0301c9b03e:/usr/src/app# node --version

@devasishg devasishg added the Bug label May 10, 2022
@leibale
Copy link
Collaborator

leibale commented May 10, 2022

Duplicate of #2117

@guptaarpit
Copy link

Still facing same issue for docker node:14-alpine, Can someone help what need to be on Docker

@bhartendu27
Copy link

Upgrading my node version to current stable version fixed it for me. (my strapi version: 3.6.8)

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

@nguemechieu
Copy link

I had the same issue and run
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
This worked for me .Thanks

@ashioyajotham
Copy link

Thank you very much @bhartendu27 @nguemechieu :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants