Questions tagged as 'babel'

1
answer

Babel for those who have never used NodeJS

Maybe because I have a much better experience with PHP, I've never been a fan of JavaScript. I've always found the language syntax confusing and complicated, and I've often used jQuery to do simple things that many would do with their feet on...
asked by 04.01.2017 / 14:44
1
answer

How to compile the entire project folder for ES5 using babel.js?

I have an HTML5 Cordova project and I need to make a hook before compiling to convert entire projects folder (www) to ES5 before compiling. Is it possible? Structure cordova/ hooks/ node_modules/ platforms/ plugins/ www/...
asked by 09.08.2016 / 23:10
0
answers

Some of my code does not seem to go through Babel before arriving in Uglify

I am not able to generate the production build of my application with Laravel Mix. When trying to build the build, npm tells me that there was an error while trying to run UglifyJs:    /js/app.js from UglifyJs   Unexpected token: operator (&...
asked by 13.05.2017 / 18:07
2
answers

Importing modules with Python

How can I make import libraries, for example, I was searching and found Babel to do internationalization of dates, but I do not know how to import this library?     
asked by 07.08.2015 / 02:43
1
answer

Installation of dependencies in npm start but not finish

I am taking a course and following a book on NodeJs . In the book I'm asked to install the Express and Babel modules, already in the course they ask to install dependencies of an application that they make available. My problem is this:  ...
asked by 01.12.2017 / 22:56
1
answer

Error installing babel npm package in my project

I'm trying to install the babel package in my project. But when you run the command: npm install --save-dev babel-cli , an error occurs in the tar.unpack installation. See the picture: Already tried to update the npm, update the node...
asked by 05.09.2016 / 16:16
0
answers

Webpack does not use Babel to transpile

Whenever I run the build of my project, the output is always the file generated by the webpack, with no signs that it has passed Babel. My settings look like this: package.json { "name": "webpack-test", "version": "1.0.0", "descriptio...
asked by 27.12.2018 / 11:31
1
answer

Integrate ES2015 Classes with jQuery

After a lot of reading I finally managed to make Babel work and thus transpile the scripts. Before using das, let's call it ES2015 classes, after reading about best practices I had something like this: ( function( Navigation, window, do...
asked by 10.01.2017 / 14:32
0
answers

Problems compiling with Babel JavaScript

Today I realized the acquisition of a theme for React, and when I went to execute the npm install commands to download the modules of the node and soon after I executed the command npm serve it returned an error to me as shown in t...
asked by 17.12.2018 / 21:53
2
answers

Importing modules with Python

How can I make import libraries, for example, I was searching and found Babel to do internationalization of dates, but I do not know how to import this library?     
asked by 07.08.2015 / 02:43