strapi-plugin-sitemap: Unexpected token '.' error when deploying to GCP App Engine
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
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (8 by maintainers)
Commits related to this issue
- fix: Build issue when using Node 12 (#57) — committed to pluginpal/strapi-plugin-sitemap by boazpoolman 2 years ago
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 😃
Thank you for your help @boazpoolman. I will close the issue for now, I also think that this might be related to something else. I will write another comment if I find something for future references.