Consider the following two files:  app.js  import Game       from './game/game'; import React      from 'react'; import ReactDOM   from 'react-dom';  export default (absPath) => {   let gameElement = document.getElementBy...
I'm stuck with the following error when trying to build a react app with Webpack4 and Babel7.   ERROR in ./src/index.js Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module 'babel-preset-react' fr...
I`m tryng to use Babel-loader on an old project, and i notice some issues regarding when babel loader is working on wrapped objects, is this its default behaviour ? I am not sure if this is a bug or something im doing wrong, i could not find much abo...
I just updated the React Native from 0.55 to 0.56.  However, when I tried to run the code (react-native run-android OR run-ios), bundling stops to this point:  Loading dependency graph, done. error: bundling failed: TypeError: Cannot read property &#...
I'm trying to use javascript ES7 syntax on the server using node.js with webpack and babel-loader (es2015 + stage-0 presets). I've gotten it to work with babel-node but when I run webpack I get the following error at the async keyword (9:22 i...
I cannot seem to get the example code for a Vuetify v-menu to work inside my PWA app, but it works normally in a Fiddle (e.g. https://jsfiddle.net/tjw13yz4/27/)  The problem is: the activator slot content doesn't appear.   By debugging the vuetif...
There is _.merge functionality in lodash. I want to achieve the same thing in ES6 or ES7.  Having this snippet:  Object.assign({}, {key: 2}, {key: undefined})   I want to receive {key: 2}. Currently I receive {key: undefined}  This is NOT a deep merg...
I'm using babel with webpack, I'm trying to make arrow functions work with Internet Explorer, but I can't get it working.  This is my package.json dev dependencies:  "devDependencies": {     "babel-core": "^6.26.3"...
When you use JSX in a JS file, you have to import React or else the generated code won't compile. This is because this:  import React from 'react' import ReactDOM from 'react-dom'  function Foo() { return 'hello world' }...
I am doing a dev build and I'm getting below babel error. I'm not sure which module/plugin to install for this. Any pointers would be greatly appreciated.  ERROR in ./src/_components/display/DisplayList.jsx Module build failed (from ./node_mo...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.