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'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...
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"...
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...
Development and build version not working in IE 11 and Edge. Here are my webpack config and package json file.  I have used below repo. https://github.com/kriasoft/react-starter-kit  I have been trying to fix this issue using various babel packages a...
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.  To test it, I created a separate project with a sim...
I'm using Babel and Webpack to generate ES5 code from ES6. There are some validations that is used to reduce the mistakes i do while coding.  class Logger {     /**      * @param {LogModel} info      *  {LogTypes} type      *  {String} message...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.