Category "babeljs"

Failed to load config "next/babel" to extend from eslintrc.json

When I'm trying to build the Next.Js app then the below error is coming with a successful build. This error is showing when I deploy the app in Vercel. error -

.globals is not a valid Plugin property

I want to integrate the QR code scanner feature in my react-native-based applications. so I am installing the react-native-vision-camera package. According to d

How to use BigInt exponentiation with Babel?

Consider this: const a = BigInt(2); const b = BigInt(2); const c = a ** b; Babel will convert this to: var a = BigInt(2); var b = BigInt(2); var c = Math.po

How do I configure absolute paths for imports in TypeScript based React Native apps?

In order to avoid '../../../../' style relative imports in a TypeScript based React Native app, I would like to configure the app so that I can use absolute imp

Jest - Cannot find module '.../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireDefault'

I am trying to run my project's tests on my CI/CD machines. They are jest tests that have been running fine for some time on all my environments. I am going t

Error: Cannot find module '@vue/babel-preset-app'

When I create a new vue application, and I run the server I get an error, after the compilation failed. Does anyone have where the problem comes from? Here is

Error: Cannot find module '@vue/babel-preset-app'

When I create a new vue application, and I run the server I get an error, after the compilation failed. Does anyone have where the problem comes from? Here is

getting babel-node to work with yarn v2/3

I have a project with the following structure ./ ├── README.md ├── babel.config.js ├── package.json ├

Jest import statement: 'TypeError: Cannot set property 'fillStyle' of null'

I type: npm test and I get: It's interesting to note that the import statement works inside the BootScene.test.js file but it doesn't work in the imported fil

`regeneratorRuntime` is not defined when running Jest test

The title pretty much explains what I'm facing. I'm trying to test a React component that has some state, and I attempt to provide my store to the component in

How to deploy app to Heroku if you use Babel and ES6?

I am wrecking my head trying to deploy the app to Heroku. The problem is that I am using ES6 with Babel. I've found many articles about that but none of them

Cannot find module '@babel/plugin-transform-runtime' from

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. Ho

URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico'

I am new to webpack and I got the babel loader and css loader to work and project compiles successfully but when I try to access via browser I get the below err

Module parse failed? I need help setting up Babel

I'm writing my first JavaScript library and I'm testing it locally with a React project. I'm not seeing any Typescript errors when I'm writing my code but when

React Native TypeError: undefined is not an object (evaluating 'props.getItem')

When navigating to certain screens on my React Native app (using expo), I am getting the following error: TypeError: undefined is not an object (evaluating 'pro

How to Enable Private Method Syntax Proposal in React App?

I got "Class private methods are not enabled." error when running npm start on a project using leading # to indicate private methods. I followed this answer: ht

Passing "global" and "ignore" options to browserify via the command line

I'm using browserify with babelify to transpile a JS file. The JS file require()s a component in node_modules, which I also want transpiled. As per the FAQ on

Parsing error : Cannot find module 'next/babel'

I have been encountering this error on every single new Next.js project that I create. The page can be compiled without any problem, it just keeps on showing as

Code inside DOMContentLoaded event not working

I have used <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> </head> <body> <button type="button" id="button"&

How to prevent babel from transpiling generator functions

I have kind of a weird problem with babel. When I use a simple generator function in one of my classes, babel creates a function out of it containing a call to