Questions tagged [babel-node]
80 questions
0
votes
2 answers
babel-node is not getting installed on Heroku
I'm using babel-node for ES6 syntax on Heroku, but I get a build error when I deploy. It says "babel-node: not found". I've tried a clean install on my local computer and it works perfectly. Package.json:
{
"name": "secret",
"version": "0.0.0",
…

justasking
- 105
- 3
- 12
0
votes
0 answers
populating a db with babel-node.js error
I am following this tutorial: http://rationalappdev.com/api-backend-with-nodejs-express-and-mongodb-for-react-native-apps/
basically, I am trying to create a MongoDB on windows and populate it with some datas in a movie.js file
I launch the command…

dtjmsy
- 2,664
- 9
- 42
- 62
0
votes
1 answer
Deploying an app developed with babel-node
I have been using webpack for the first time, starting for a tutorial, but I'm stuck trying to deploy this to digital ocean.
I have been running the server during development by typing
npm start
Which calls:
babel-node devServer.js
This works…

Positonic
- 9,151
- 14
- 57
- 84
-1
votes
2 answers
Object spread not working in Node 7.5
// Rest properties
require("babel-core").transform("code", {
plugins: ["transform-object-rest-spread"]
});
let { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 };
console.log(x); // 1
console.log(y); // 2
console.log(z); // { a: 3, b: 4 }
// Spread…

drhanlau
- 2,517
- 2
- 24
- 42
-2
votes
1 answer
How to execute Babel-node from GIT bash without typing entire link to node_modules
The goal is to execute babel-node server.js from GIT bash without typing entire link for babel-node.
.bash_profile with the following:
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
.bashrc with the following:
export PATH=$(npm bin):$PATH
$…