Can't find babel preset when deploying to GAE

56 views
Skip to first unread message

Ionut Achim

unread,
Jan 18, 2017, 9:16:36 AM1/18/17
to Google App Engine
I keep getting the `Error: Couldn't find preset "latest" relative to directory "/app"` whenever I try to deploy to Google App Engine.

I've tried with `.babelrc` config file, adding the config inside `package.json` and even passing arguments to the script (`babel src --out-dir dist --presets=latest`). separate tries and all at once. Nothing works.
Does anyone have any idea of what might be happening and how to make this work?

Alex (Cloud Platform Support)

unread,
Jan 19, 2017, 1:35:59 PM1/19/17
to Google App Engine

Hi Ionut,


By any chance, have you tried to load explicitly the Babel “Latest” dependencies by running the following command?


    npm install --save-dev babel-preset-latest


More information can be found on the following third party site for Babel 6.


Alternatively, you could also try installing Babel 6’s presets individually following this other third-party provided guide.


Let me know if any of the options work for you. If not, I will need you to reply with the output of running [gcloud --version] and more information about the system you are trying to run(Type of application and version of components, App Engine environment, etc..). Also, are you getting any error when running the application locally?
Reply all
Reply to author
Forward
0 new messages