Unexpected token '.' error when deploying to GCP App Engine
See original GitHub issueBug report
Describe the bug
Hi there, After I set up the sitemap plugin, I cannot deploy the code to the Google Cloud Platform App Engine. This is the error I’m having.
> strapi start
[2021-12-21 01:52:20.738] debug: \u26d4\ufe0f Server wasn't able to start properly.
[2021-12-21 01:52:20.742] error: Could not load js config file /app/node_modules/strapi-plugin-sitemap/strapi-server.js: Unexpected token '.'
Error: Could not load js config file /app/node_modules/strapi-plugin-sitemap/strapi-server.js: Unexpected token '.'
at loadJsFile (/app/node_modules/@strapi/strapi/lib/core/app-configuration/load-config-file.js:18:11)
at loadFile (/app/node_modules/@strapi/strapi/lib/core/app-configuration/load-config-file.js:35:14)
at Object.loadPlugins (/app/node_modules/@strapi/strapi/lib/core/loaders/plugins/index.js:109:26)
at async Strapi.loadPlugins (/app/node_modules/@strapi/strapi/lib/Strapi.js:279:5)
at async Promise.all (index 1)
at async Strapi.register (/app/node_modules/@strapi/strapi/lib/Strapi.js:311:5)
at async Strapi.load (/app/node_modules/@strapi/strapi/lib/Strapi.js:409:5)
at async Strapi.start (/app/node_modules/@strapi/strapi/lib/Strapi.js:161:9)
Any Idea?
System
- Node.js version: v14.17.2
- NPM version: 6.14.13
- Strapi version: 4.0.0
- Plugin version: 2.0.2
- Database: Postgres 13
- Operating system: Linux
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (8 by maintainers)
Top Results From Across the Web
Google App Engine GitHub Action: Error: Unexpected token in ...
I'm trying to deploy my Django API on to Google App Engine using GitHub CI/CD, but I'm getting a strange error that doesn't...
Read more >Troubleshoot App Engine errors - Google Cloud
This error occurs when the user or service account that is trying to deploy the app with Serverless VPC Connector does not have...
Read more >node.js SyntaxError: Unexpected token > - Server Fault
On Windows 10 it runs flawlessly. On google cloud it gives me this error... /app/test.js:16 client.Dispatcher.on(Events.GATEWAY_READY, e => ...
Read more >How do I setup routing for react in GAE? Directly routing to ...
Setting GAE app.yaml for react-router routes produces "Unexpected token <" errors. ... In the development environment, all routes work when called directly.
Read more >Has anyone successfully deployed yet? · Issue #343 - GitHub
Verify that your project has a Google App Engine instance setup at https://console.cloud.google.com/appengine and try again. If this issue ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Really got to get some integration tests running. This kind of stuff shouldn’t slip through the CI really.
Hmm, interesting. Maby the plugin doesn’t support node 16. I honestly don’t know, but I’ll do some testing later.
Happy it’s resolved for you 😃