Skip to content

SyntaxError: Unexpected token import #5

@daviddever

Description

@daviddever

When starting the container I see this error repeating in the logs

mqttbridge        | 2022-03-11T04:58:28: PM2 log: App [HTTP-To-MQTT-Bridge:0] starting in -fork mode-
mqttbridge        | 2022-03-11T04:58:28: PM2 log: App [HTTP-To-MQTT-Bridge:0] online
mqttbridge        | /usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js:30
mqttbridge        |     import(url.pathToFileURL(process.env.pm_exec_path));
mqttbridge        |     ^^^^^^
mqttbridge        | SyntaxError: Unexpected token import
mqttbridge        |     at createScript (vm.js:80:10)
mqttbridge        |     at Object.runInThisContext (vm.js:139:10)
mqttbridge        |     at Module._compile (module.js:617:28)
mqttbridge        |     at Object.Module._extensions..js (module.js:664:10)
mqttbridge        |     at Module.load (module.js:566:32)
mqttbridge        |     at tryModuleLoad (module.js:506:12)
mqttbridge        |     at Function.Module._load (module.js:498:3)
mqttbridge        |     at Function.Module.runMain (module.js:694:10)
mqttbridge        |     at startup (bootstrap_node.js:204:16)
mqttbridge        |     at bootstrap_node.js:625:3
mqttbridge        | 2022-03-11T04:58:28: PM2 log: App [HTTP-To-MQTT-Bridge:0] exited with code [1] via signal [SIGINT]

I haven't made any changes to the container config which was working previously so I think it might be an issue with the latest image. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions