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...
the babel docs say the modules default option is auto, what does the auto means? does it transform the "import" to "require" or not? what's the difference between "modules: false" and "modules: auto"? it seems they...
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 have the following gulpfile.js:  var gulp = require('gulp'); var browserify = require('gulp-browserify'); var concat = require('gulp-concat');  gulp.task('browserify', function() {     gulp.src('js/ScheduleMain.j...
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"...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.