babeljs Questions
5
So i had a bit weird warning from eslint
'./types' is a flow type file.
I think eslint read checkbox as a lowercase while in reality it is Checkbox (capital C).
I try git mv casesensitive tmp &am...
Accrue asked 4/8, 2020 at 20:10
1
I'm trying to convert default Vite template JS with Babel/preset-env, to be compatible with older browsers - to es2015. In code generated by Vite still appear const instead of var.
I'm using this p...
Scut asked 1/4, 2023 at 12:10
3
I am using Rollup to bundle my code for production.
I have multiple js files, so I am using the Rollup plugin-multi-entry plugin to use a glob pattern to target all of my js files.
I am outputting ...
Gerfen asked 1/10, 2020 at 14:2
3
Solved
I'm following a react tutorial but I'm lost. I don't understand starting line 9.
so I tried to make a little miarature
const updateTodo = (list, updated) => {
const index = list.findIndex(...
Falsework asked 5/2, 2017 at 14:25
3
I'd like to not include .babelrc during build since SWC is disabled as a replacement for Babel. I only need .babelrc for a plugin for dev testing purposes that is not supported by SWC yet. I am tol...
Selfhood asked 21/3, 2022 at 21:1
10
Solved
I stumbled into a problem where in VS Code, when a Vue project is created and not open at root directory of the Vue project, babel.config.js wouldn't load and IDE would be confused as to where the ...
Epistasis asked 25/2, 2022 at 21:10
31
Solved
When trying to run the command using nextjs npm run dev shows error - failed to load SWC binary see more info here: https://nextjs.org/docs/messages/failed-loading-swc.
I've tried uninstalling node...
Dong asked 2/11, 2021 at 20:31
7
I am trying to use styled-jsx with some code. However, no matter what I do, I seem to get an error
index.js:1437 Warning: Received `true` for a non-boolean attribute `jsx`.
If you want to write i...
Fray asked 29/7, 2019 at 21:18
3
Solved
I'm using Sequelize together with Node and JavaScript in one app. As you know when you execute sequelize-init it creates config, migrations, models and seeders folder. Inside of the models folder, ...
Statecraft asked 22/2, 2021 at 11:40
2
I'm trying to figure out the build process for react native and what exactly it is that both the metro bundler and babeljs do. In particular what allows me to use ES5+ syntax. I'm finding some sour...
Chloris asked 7/2, 2020 at 10:36
1
Polyfill.io is malicious: https://dev.to/snyk/polyfill-supply-chain-attack-embeds-malware-in-javascript-cdn-assets-55d6
I now need to find it my codebase:
I used: grep -r "polyfill.io" to...
Caecilian asked 27/6 at 8:10
9
Solved
I created a small JS module which I intend to make an npm package, but for now is just on GitHub. This module is written in ES6 and SCSS, and is thus relying on webpack and babel for transpilation....
Interactive asked 20/5, 2018 at 13:19
3
Solved
I'm attempting to write a plugin for babel, and am needing the filename of the current file that is being parsed. I know the lines of the code are passed in, but I haven't managed to find a referen...
Farmhouse asked 8/3, 2016 at 1:23
1
I'm writing the test suite for a web app, and I need to import the JSX from the source into a test environment. Part of this process uses @babel/register to correctly transpile my JSX into standard...
7
Solved
I have a Node/React project in my Webstorm that won't run because of this error. I had to reinstall Windows and start fresh with my development. I got the code back into the IDE, but when I start u...
Sexy asked 11/9, 2020 at 16:59
3
Minimal reproducible repo:
https://github.com/ShocKwav3/babel-node-basic
I am trying to setup debugger with vscode for a nodejs app. I am running the app with babel-node. No matter what I try, the ...
Endowment asked 7/10, 2020 at 21:21
4
I'm trying to write a simple babel plugin, but I am having a hard time traversing a matched node with a nested visitor. I would like to find all require calls in a module that require a certain mod...
Substage asked 1/6, 2017 at 14:0
3
Getting same error again again: Error: Cannot find module 'babel-preset-es2015'.
Full error log:
ERROR in ./main.js Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Can...
4
I m getting the error " Cannot find module '@babel/plugin-transform-runtime' from ...". I have tried every solution on the internet but nothing really works.
How can i solve it ?
Any suggestion wou...
4
Let's say I have the following array:
['product' , 'model', 'version']
And I would like to have an object such as:
{
product: {
model: {
version: {
}
}
}
}
However, that array is dyna...
Rule asked 29/8, 2018 at 12:10
28
My issue is that I've tried to create a new React project and after a lot of issues with vulnerabilities, I managed to solve some of them, one of the main instructions was adding this line:
"o...
Stenger asked 8/6, 2023 at 19:56
4
I have been following instructions from https://github.com/babel/babelify and I ran into an error along the way. I run the following line of code:
browserify script.js -o bundle.js -t [ babelify -...
Monoploid asked 28/11, 2018 at 23:0
4
Solved
I have a basic react app (created using create react app)
I have gone through a few links related such as babel plugin installation
npm i babel-plugin-transform-remove-console --save
Guide to remo...
Affectation asked 26/7, 2019 at 16:50
2
I am trying to add accessibility to a large web application built with react and webpack. This requires going back to the source files from the app. Is there a way to see which file the code origin...
Pop asked 25/10, 2018 at 19:51
3
Solved
This error is coming up when I am making a pull request. There is a GitHub workflow audit that runs checks on the pull request and it loads the test file from another repository.
- name: Run Audits...
Andersonandert asked 10/4, 2020 at 18:7
1 Next >
© 2022 - 2024 — McMap. All rights reserved.