babel/register not running on server

I’m using babel/register in a project. My index.js looks something like require(‘babel/register’); require(‘./server’); and my server.js starts using ES6. Running this on my local machine is fine. However, when I push it to the staging server, I get an error implying that the transformation from 6 to 5 is not taking place:

2015-10-19T09:16:32.625Z pid:53 worker:11 /home/strong-pm/svc/2/work/…/server.js:1

  • Node.js dev environment in Docker on Windows
  • 'service docker status' fails: invalid arguments
  • docker network - ping
  • Kubernetes pod can't access its own service
  • docker on mac: unable to resolve path to a file on mac from the program running in container
  • How does Docker use ports 2375 and 4243?
  • 2015-10-19T09:16:32.628Z pid:53 worker:11 (function (exports, require, module, __filename __dirname) { import dotenv fr

    2015-10-19T09:16:32.628Z pid:53 worker:11 ^^^^^^

    2015-10-19T09:16:32.628Z pid:53 worker:11 SyntaxError: Unexpected reserved word

    As you can possibly see, I’m using strong-pm to deploy through docker if that affects the situation at all.

    Do you know why this would work on my local but not on staging?

  • Docker + WerckerCi: Tag not found
  • Docker seccomp not working on Kali
  • Is there Jenkins or other open-source CI for a distributed system?
  • Swarm: Get Node Ip and Container IP from service
  • SSH agent forwarding during docker build
  • Docker image for windows components
  • One Solution collect form web for “babel/register not running on server”

    This was the fault of strong-pm which, as of posting, ignores your main in your package.json, and instead looks at scripts.start. Whodathunkit.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.