PagerDuty / backstage-plugin-backend

PagerDuty plugin for Backstage - Backend
https://pagerduty.github.io/backstage-plugin-docs/index.html
Apache License 2.0
3 stars 8 forks source link

SyntaxError: Unexpected token 'export' #17

Closed yoramshai closed 9 months ago

yoramshai commented 9 months ago

Describe the bug When following the guide I'm getting exception when backstage trying to start with the below error backstage-5f9894d7dc-d954h backstage-backend SyntaxError: Unexpected token 'export' backstage-5f9894d7dc-d954h backstage-backend at internalCompileFunction (node:internal/vm:73:18) backstage-5f9894d7dc-d954h backstage-backend at wrapSafe (node:internal/modules/cjs/loader:1274:20) backstage-5f9894d7dc-d954h backstage-backend at Module._compile (node:internal/modules/cjs/loader:1320:27) backstage-5f9894d7dc-d954h backstage-backend at Module._extensions..js (node:internal/modules/cjs/loader:1414:10) backstage-5f9894d7dc-d954h backstage-backend at Module.load (node:internal/modules/cjs/loader:1197:32) backstage-5f9894d7dc-d954h backstage-backend at Module._load (node:internal/modules/cjs/loader:1013:12) backstage-5f9894d7dc-d954h backstage-backend at Module.require (node:internal/modules/cjs/loader:1225:19) backstage-5f9894d7dc-d954h backstage-backend at require (node:internal/modules/helpers:177:18) backstage-5f9894d7dc-d954h backstage-backend at Object.<anonymous> (/app/node_modules/@pagerduty/backstage-plugin-backend/dist/index.cjs.js:8:29) backstage-5f9894d7dc-d954h backstage-backend at Module._compile (node:internal/modules/cjs/loader:1356:14) backstage-5f9894d7dc-d954h backstage-backend at Module._extensions..js (node:internal/modules/cjs/loader:1414:10) backstage-5f9894d7dc-d954h backstage-backend at Module.load (node:internal/modules/cjs/loader:1197:32) backstage-5f9894d7dc-d954h backstage-backend at Module._load (node:internal/modules/cjs/loader:1013:12) backstage-5f9894d7dc-d954h backstage-backend at Module.require (node:internal/modules/cjs/loader:1225:19) backstage-5f9894d7dc-d954h backstage-backend at require (node:internal/modules/helpers:177:18) backstage-5f9894d7dc-d954h backstage-backend at Object.<anonymous> (/app/packages/backend/dist/index.cjs.js:22:30) backstage-5f9894d7dc-d954h backstage-backend backstage-5f9894d7dc-d954h backstage-backend Node.js v18.19.0

To Reproduce Steps to reproduce the behavior: n/a

Expected behavior server should start and show PD data

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information): kubernetes, ubuntu