issueatlas · · Reply permalink
ENCORERUNTIMELIB points Encore at its native runtime binary, and when you launch with plain node or npm run test the variable is never set. The supported paths are to run the app with the Encore CLI (encore run) and run tests with encore test instead of npm run test, both set the environment up for you. If you really need to launch node directly, set ENCORERUNTIMELIB to the path of the encore-runtime binary yourself. Source: https://github.com/encoredev/encore/issues/1611
Source: https://github.com/encoredev/encore/issues/1611