Most voted "babel" questions
25 questions
Sort by count of
-
5
votes1
answer411
viewsBabel for those who have never used Nodejs
Maybe because I have a much greater experience with PHP I’ve never been a fan of Javascript. I always found the syntax of language confusing and complicated and often resorted to jQuery to do simple…
-
4
votes1
answer228
viewsHow to compile the entire project folder for ES5 using Babel.js?
I have an HTML5 Cordova project and I need to hook before compiling to convert entire projects folder (www) to ES5 before compiling. It is possible? Structure cordova/ hooks/ node_modules/…
-
4
votes0
answers44
viewsPart of my code doesn’t seem to pass through Babel before arriving at Uglify
I’m not managing to generate the production build of my application with Laravel Mix. When trying to generate the build npm tells me there was an error trying to run Uglifyjs: /js/app.js from…
-
3
votes0
answers38
viewsSymfony/React Solving Problems with Babel
I’m new to Symfony/React and soon I come across the following problem... I cannot execute the same commands that I find in some tutorials (Destined to React) on the Web, so I understood the "plugin"…
-
2
votes0
answers513
viewsHow to run webpack + Reactjs without Node.js in the client-side?
It is possible to run the webpack transpilator in the client-side without installing and running it on a Node.js server ? I am currently trying to implement a SPA application using React 15.1.0…
-
2
votes0
answers248
viewsHow do I set up Webpack and package.json to run the React project?
I made all the necessary Webpack settings and the project starts, but apparently it does not run the css in the project and only leaves a blank screen. Before the Webpack settings my Package.json…
-
2
votes1
answer107
viewsPolyfill with Gulp and Babel
I’m trying to polyfill a script to work with IE8+, but it solves some problems but generates others: My configuration of .babelrc { "presets": [ [ "@babel/preset-env", { "targets": { "edge": "17",…
-
1
votes2
answers399
viewsImport modules with Python
How can I do import of libraries, for example, I was researching and found the Babel to internationalize dates, but I don’t know how to import this library?…
-
1
votes1
answer145
viewsError installing Babel npm package in my project
I am trying to install the Babel package in my project. But while running the command: npm install --save-dev Babel-cli, an error occurs in the installation of tar.unpack. See in the image: I tried…
-
1
votes1
answer1367
viewsInstallation of dependencies on npm start but not finish
I’m taking a course and accompanying a book of Nodejs. In the book I am asked to install the *Express and Babel, already in the course ask to install dependencies of an application that they make…
-
1
votes0
answers86
viewsWebpack does not use Babel to sweat
Whenever I build my project, the output is always the file generated by the webpack, with no signals that have passed through Babel. My settings are like this: package.json { "name": "webpack-test",…
-
1
votes1
answer195
viewsHow I can create a Component in React js to publish on NPM
I have a question, need to create a component in React js is to publish it in NPM. I managed to publish it, however it keeps giving error to transpilar from js to jsx or from jsx to js. so when I…
-
0
votes1
answer242
viewsTranspiling ES6 to ES5 using Babel
I have a package.json file set up to take all js files from a directory and join them into a new file, transpiling to ES5. However, it is only creating a new file and unifying all js files from the…
-
0
votes1
answer38
viewsIntegrate ES2015 Classes with jQuery
After much reading I finally managed to do the Babel work and thus transcompile the scripts. Before using das, let’s call ES2015 classes, after reading about best practices I had something like…
-
0
votes0
answers39
viewsIs it possible to use Babel via CDN?
I’m doing a project (App on JS + Cordova), and I came across a problem using let, const, arrow function and etc (Only works in more modern devices, such as, Android 6+ or IOS 10+). So I was…
-
0
votes1
answer56
viewsGulp Babel({ presets: ["env"] }), does not see external directory
I am using Gulp to compile my JS files. I have TWO folders where there are JS files, one INSIDE the project (daughter folder themes/) and another this FORA (parent folder modules/). When using the:…
-
0
votes0
answers27
viewsCwd in Grunt + Babel
Personal talk, I am using Grunt + Babel to compile my code, it turns out that my folders are organized as follows: - pasta1 - amd -src - arquivo.js - pasta2 - amd -src - arquivo.js - pasta3…
-
0
votes1
answer43
viewsInstalling Babel-cli and live-server locally
I am installing Babel-cli and live-server locally, however, it is giving a problem saying that: run `npm audit fix` to fix 3 of them. 1 vulnerability requires manual review. See the full report for…
-
0
votes0
answers35
viewsDifficulty generating a Bundle.js file
I’m testing the Babel For this I have a file 'matematica.js' which for now exports only one function const soma = function(a,b){ return a - b } export default {soma} This function is imported into…
-
0
votes0
answers11
viewsError Babel: Missing class properties Transform
I’m trying to run an application, Node and Babel/webpack, but when I run the application the application page is just loading and soon after appears the following error in the console. And the…
-
-1
votes0
answers5
viewsHow to import a React component with Styled-Components in next using monorepo?
I’m using monorepo with Lerna and Yarn workspaces in a nextJS project, I can run the project but I can’t reuse components when I put Styled-Components in them. There’s always a mistake: Module parse…
-
-1
votes1
answer190
viewsHow to instruct Eslint to solve absolute paths with Babel-plugin-root-import in monorepos
I own a repository monorepo done with Yarn and in this I have a project frontend created with the command create-react-app. I installed the libs React-app-rewired and customize-Cra to inject the…
-
-1
votes1
answer505
views.map() is not a Function
I am developing an application in React.js and have to perform a JSON request. The variable I declared receives the object, but when it arrives at the function .map() to expose the desired content…
-
-1
votes1
answer2220
viewsCannot use import statement Outside a module - Typescript and Babel
I have the following setup: Package.json: "scripts": { "start": "node dist/server", "build": "babel src --extensions \".js,.ts\" --out-dir dist --copy-files --no-copy-ignored", "dev:server":…
-
-1
votes1
answer78
viewsRun script compiled using typescript + Babel + typeorm
While trying to execute node .\dist\index.js compiled using Babel have the following error: In dev runs without errors, all tests also pass, consuming the API also everything normal, but when I…