question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected token '.' error when deploying to GCP App Engine

See original GitHub issue

Bug 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:closed
  • Created 2 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
boazpoolmancommented, Jan 20, 2022

Really got to get some integration tests running. This kind of stuff shouldn’t slip through the CI really.

1reaction
boazpoolmancommented, Dec 21, 2021

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found