Questions tagged [babel-loader]

718 questions
0
votes
2 answers

Webpack: Cannot destructure property `curry` of 'undefined' or 'null'

After compiling my application using webpack & babel-loader for the browser, the following error appears right off the bat before the main function starts: Uncaught TypeError: Cannot destructure property `curry` of 'undefined' or 'null'. at…
Philippe Hebert
  • 1,616
  • 2
  • 24
  • 51
0
votes
2 answers

Webpack writes the absolute path info in bundle when Babel-loader is used

Here is a piece of my webpack config file: ` // webpack.config.js entry: path.resolve(__dirname, 'src/app.js'), output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist/js/'), library: 'app', publicPath:…
Olga
  • 21
  • 5
0
votes
1 answer

prevent webpack's babel-loader from using .babelrc from node_modules

I have a lib written in es6. It builds IIFE artefact (using rollup and babel configured via .babelrc) and it also exposes itself as a npm module without any transpiling (via 'module' key in package.json: …
Mike
  • 314
  • 1
  • 9
0
votes
0 answers

Webpack 1.15.0 Parse Error: JSX File

I have tried to fix my errors according to some answers. But I can't solve. I am using webpack 1.15.0 and babel-loader 6.4.1. Please help me to parse jsx file. Here is the error message. ERROR in ./~/react-file-viewer/src/components/file-viewer.jsx…
Gerhard Savin
  • 17
  • 1
  • 3
0
votes
0 answers

Babel window._interopRequireDefault is not a function

I have this file: AxiosExtension.js import Axios from 'axios'; //eventually add code here, if I can get this simple file working export default Axios; I am running AxiosExtension through webpack babel loader that looks like this: Webpack…
zechdc
  • 3,374
  • 9
  • 40
  • 52
0
votes
1 answer

webpack appears not to call babel-loader

My webpack config stopped working for me. In particular, it looks like babel-loader is no longer getting called, but I have not been able to confirm it. Here is my console output: $ NODE_ENV=prod webpack…
Lawrence I. Siden
  • 9,191
  • 10
  • 43
  • 56
0
votes
1 answer

Webpack hot module replacement not working with babel-loader and preset es2015

Hot module replacement works with no loader, another loader, or another preset. But it doesn't work with babel-loader and preset es2015. es2016 works. Same problem with preset "env". Is it possible at all to use webpack hot module replacement with…
leyou
  • 806
  • 1
  • 13
  • 25
0
votes
0 answers

babel-preset-env SyntaxError: Unexpected token with arrow functions

Why babel-preset-env is not accepting arrow function ? .babelrc configuration reference { "presets": [ "react", [ "env", { "targets": { "browsers": [ …
vijay
  • 10,276
  • 11
  • 64
  • 79
0
votes
0 answers

Module build failed - React

I'm following some video tutorial on react and now I'm stuck with this "module build failed error". The screenshots are provided below, Some invalid index.js having invalid property of 'name'. Please check them and help me out, webpack is showing…
Shubham
  • 1
  • 5
0
votes
2 answers

Webpack with babel-loader not emitting valid es5

I have a webpack config that is based off https://github.com/vuejs-templates/webpack-simple/blob/master/template/webpack.config.js It uses vue-loader and babel-loader. The issue is I cannot get it to generate ES5 code so that it will work in the…
emkman
  • 812
  • 12
  • 21
0
votes
1 answer

has already been exported. Exported identifiers must be unique.Babel babylon error

I am .net developer i am new in nodejs enviroment I have a nodeJS project.It was work very well,I addes some feauture and I finished it.Then I deleted that project.Now I must install that project for add new feautures So I took project code in a…
user1688401
  • 1,851
  • 8
  • 47
  • 83
0
votes
0 answers

Module parse failed with babel-loader and webpack 3

I'm trying to build my client with Webpack 3 and babel-loader, and for the life of me, I cannot figure out why it isn't parsing a simple JSX file. It fails immedaitely, giving me the message: ERROR in ./Client.jsx Module parse failed:…
0
votes
1 answer

Webpack load module outside the root directory

I am using Webpack to build my react-redux apps and encountered a situation: I tried to take some common components out of one app directory in order to reuse them during multiple react app, but when I tried to load one component outside the app…
0
votes
1 answer

UNMET PEER DEPENDENCY webpack when using rollup

I am trying to install 'react-dnd' and getting: +-- react-dnd@2.4.0 `-- UNMET PEER DEPENDENCY webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc npm WARN babel-loader@6.4.1 requires a peer of webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none was…
Amalin
  • 315
  • 4
  • 11
0
votes
1 answer

Where is my mistake , web-pack babel eror

I have a issue , i wasted so much time on googling i need to ask here this error var config = { entry: './main.js', output: { path: require('path').resolve("./ReactApp/js"), filename: 'bundle.js', publicPath:…
1 2 3
47
48