Error regeneratorRuntime is not defined with Babel 7

I would like update my Babel config to version 7 in Electron project. I've add my all plugins i needed : "devDependencies": { "@babel/cli": "^7.0.0-beta.40", "@babel/core":...

Babel 7 update mucking up jest tests with Cannot use the decorators and decorators-legacy plugin together

I am upgrading to Babel 7 and though the app is loading, my tests are mucking up. They were fine before. I am getting this error from every test that involves a decorated component. FAIL ...

Syntax error - Support for the experimental syntax 'decorators-legacy' isn't currently enabled

I'm trying to build JS react project with decorators. My .babelrc looks like this: { "presets": [ "@babel/preset-env", "@babel/preset-react", ], "plugins": [ ...

How to get MobX Decorators to work with Create-React-App v2?

Support for the experimental syntax 'decorators-legacy' isn't currently enabled I tried adding the decorators-legacy babel plugin and @babel/plugin-proposal-decorators with { legacy: true } in...

Cannot find module '@babel/parser'

I am no longer able to transpile my codebase when running babel. I made. It wasn't happening before and I am unable to figure out why. This only happened when I pulled remote master branch, which...

Why is `unstable_Profiler` not profiling on production mode?

I have an issue with unstable_Profiler on my React-Native project that is ignoring onRender callback, but only in production mode. No errors, everything renders fine. I went by this article:...

Unhandled JS Exception: Can't find variable: require

React native Version: 0.57.3 Android: Google Pixel 3 API - 28 iOS: iPhone 8 plus - 11.4 react-native-web: 0.10.0 I am trying to run my react-native-web app which is running fine on the web. I have...

Vue on LG WebOS

I am choose Vue to develop a web app for LG WebOS TV but get an issue. The problem is that router doesn't rendering anything and there is no errors in console, but same app works as it should with...

Typescript styled-component error: "Type '{ children: string; }' has no properties in common with type 'IntrinsicAttributes'."

Getting a typescript error on my styled-component Type '{ children: string; }' has no properties in common with type 'IntrinsicAttributes'.ts(2559) import React from 'react' import {...

How to fix the warning when use @babel/plugin-transform-typescript to compile typescript

When I use @babel/plugin-transform-typescript to compile typescript, the warning happens This problem is likely caused by another plugin injecting "_class" without registering it in the scope...

the experimental syntax 'decorators-legacy is not supported and shows an error when i try to use mobx tools on my react app

Hey I Have been trying to add @observer to my react component but this error occurs : Support for the experimental syntax 'decorators-legacy' isn't currently enabled here are the steps I have...

Heroku upload react app show cannot access '/app/build/static/js/*.js': No such file or directory

I built react app and upload it to heroku. i add create-react-app-buildpack.git into heroku I get error An error occurred in the application and your page could not be served. If you are the...

Build error occurred ReferenceError: describe is not defined > During now.sh deployment

I'm using now.sh to deploy my nextjs (React) app. And the build is failing due to this error: Build error occurred ReferenceError: describe is not defined Not sure why this started happening, here...

React native 0.59.9 app crashing in android

The app crashes when I signed in and in the main application but no problems when I am in the login screen with no error what so ever and a few seconds the app crash. The IOS is doing okay and...

Getting error - Unrecognized command "run-android", when running react native,

I get this error when try and run react native on my emulator, react-native run-android error Unrecognized command "run-android". My emulator is connected and working, any...

reactRedux.useDispatch is not a function

I am trying to use react-redux hooks, however I get the error: TypeError: (0 , _reactRedux.useDispatch) is not a function Any ideas? ... import { useDispatch, useSelector } from...

CDN: trunk URL couldn't be downloaded in certain React Native project when running "pod install"?

I have this react native project that im working with multiple computers, in my MacBook everything works fine, when I run "pod install" after running "npm install" the pods project is created...

Babel throwing Support for the experimental syntax 'jsx' isn't currently enabled

I started newly writing unit test cases using Jest and Enzyme for the react application and when try to run test cases using jest like "test": "jest --watch" rather "test": "react-scripts test"...

jest issue with typescript react components

I'm currently having an issue with Jest and Typescript inside a Lerna mono repo. Inside the test file, I've imported the component import { Doctor } from '../src'; and the test step is as...

How to enable @ experimentalDecorators in next.config.js or babelrc

Hi if someone would help me, I wanna use @Decorators on my nextjs app, but I get the following error. Hope someone knows what Im doin wrong Error message: Syntax error: Support for the...

react-native-permissions:NativeModule.RNPermissions is null

I'm a react-native newbie, I'm using bare expo insallation, I want to use react-native QR scanner, for that I downloaded his dependencies like react-native-camera and...

Unable to set property 'wrap' of undefined or null reference

I'm building a bundle with webpack + babel for browser, targeting it to ES5. When I try to use it, an error Unable to set property 'wrap' of undefined or null reference appears. It worked normally...

How do I prevent webpack from throwing typescript errors for unused modules?

I have the following structure: └── src ├── tsconfig.json ├── core │ ├── [...].ts └── ui ├── [...].tsx └──...

How do i enable "@babel/plugin-proposal-decorators" with vite

> src/App.jsx:22:0: error: Unexpected "@" 22 │ @observer error when starting dev server: Error: Build failed with 1 error: src/App.jsx:22:0: error: Unexpected "@" I use the observer as a...

Reanimated V2.0.0-rc.0 different thread error when using hooks provided in reanimated v2

Im using Reaniamted v2 with an expo project. I have seen many tutorials online where the example below works with no errors but when i'm trying to use the code as a learning practice in my app I...

Typeorm production vs development - import statement outside a module

I have a project setup with NodeJS, typescript and TypeORM using ts-node-dev. Currently development works without issues, but when I try building it with babel and running it I have the following...

Upraded Webpack 4 to 5 : Build stalls at 10% building 0/1 entries 1/1 dependencies 0/1 modules

I am upgrading my webpack from 4 to 5 , when i run webpack command webpack --progress --config webpack.config.js the progress stalls at Build stalls at 10% building 0/1 entries 1/1 dependencies...

npm install error ENOTEMPTY: directory not empty,

I encountered the following error when I tried to install some new packages using npm install. It happened when I did npm install a-new-package --save and then delete package-lock.json file...

How to configure Storybook to run from a directory other than the project root

I'm trying to configure Storybook to run from a directory that is not the root of the project and I'm having a little trouble. I've setup a mono-rep using...

Getting error 'Support for the experimental syntax 'jsx' isn't currently enabled' when running npm run start

I am currently receiving this error when running npm run start from my terminal 'Support for the experimental syntax 'jsx' isn't currently enabled'. Im not sure what the issue is as my...