Questions tagged [babel-preset-env]

73 questions
0
votes
1 answer

Webpack Multiple presets with babel loader along with key value pair

have a question in mind while working, i found it difficult to configure preset for babel loader do have a look and let me know what needs to be done in order to fix it. i am not about to write the whole webpack file just part of it where i found…
Amit Chauhan
  • 71
  • 1
  • 8
0
votes
1 answer

Can I list the polyfills applied to each webpack entry points by babel/preset-env with useBuiltIns:usage?

I have a small Javascript app that executes on webpages. It can run in most modern browsers but not old ones like IE (because it uses some features like Promise ). I can use babel/preset-env with useBuiltIns:usage with browserlist config to add…
David Lin
  • 13,168
  • 5
  • 46
  • 46
0
votes
1 answer

Unexpected token { with Webpack 4 and @babel/preset-env

This is my .babelrc: { "presets": [ "@babel/preset-env", "@babel/preset-react" ] } Here's where the error comes from. \client\src\components\AddBook.js: const { handleSubmit, pristine, reset, submitting } = this.props; The error…
El Anonimo
  • 1,759
  • 3
  • 24
  • 38
0
votes
0 answers

Preset files are not allowed to export objects, only functions. React Native

I'm getting this weird error and cant find a way to clear it. its regarding some babel preset Please find package.json file { "name": "wallet", "version": "0.0.1", "private": true, "scripts": { "start": "node…
Kartiikeya
  • 2,358
  • 7
  • 33
  • 68
0
votes
1 answer

@babel/preset-env loaded with wrong babel version after upgrade babel 6 to 7

I tried to upgrade my babel from 6 to 7, but I encounter this issue. /Users/darryl/Documents/Github/apps/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:328 throw e; ^ Error:…
Darryl RN
  • 7,432
  • 4
  • 26
  • 46
0
votes
1 answer

babel-loader is ignored by webpack config

I'm having some issues with babel-loader and cannot for the life of me figure out what is wrong. It does not seem like babel-loader is transpiling at all and I have a suspicion that the babel-loader is not even being used. The result is the same…
0
votes
1 answer

Testing babel-preset-env using package.json

Noob question here. Trying to assure myself that babel-preset-env works. I install babel-core and babel-preset-env: yarn add --dev babel-core yarn add --dev babel-preset-env My package.json has: "babel": { "presets": [ [ "env", { …
user3496136
0
votes
1 answer

Generator Runtime error when added babel-preset-env and babel-preset-stage-2

I had to use babel-preset-env and babel-preset-stage-2 in order to use webpack for a code that includes spread operator. After that I succeed in building my bundle with webpack but this time I get generator runtime error during runtime. So first I…
Rasim Avcı
  • 1,123
  • 2
  • 10
  • 16
0
votes
0 answers

Babel Import/Export Dependency Conflicts

I'm trying to use javascript ES7 to set up my base graphql server. My application crashes when I do npm run from my terminal. I believe I've installed too many babel packages, causing dependency contradictions. Does the babel-preset-env cover…
0
votes
1 answer

babel-preset-env runtime version check

babel-preset-env allows to automatically determine the needed polyfills and transformation but how does it check at runtime if the target versions specified at compile time are really available. Let say I target safari 10 using "targets": { …
doberkofler
  • 9,511
  • 18
  • 74
  • 126
-1
votes
2 answers

Getting "npm start" error when deploy Node JS app to Heroku server

I'm getting this error when i deploy my NodeJS app to Heroku server. 2019-08-27T05:54:03.597197+00:00 heroku[web.1]: State changed from starting to crashed 2019-08-27T05:54:03.569746+00:00 heroku[web.1]: Process exited with status…
quan_bui
  • 69
  • 1
  • 3
  • 8
-1
votes
1 answer

Unexpected token, expected "," when trying to use react rendering

The code I had used to work, but after doing a lot of major updates to packages I have been working through some errors. The one that has me stuck right now is the following: renderDateTextField = (props: TextFieldProps) => { return (
ComputerLocus
  • 3,448
  • 10
  • 47
  • 96
-1
votes
1 answer

undefined is not an object (evaluating 'regeneratorRuntime.mark')

I'm having a trouble with this error for quite a while. I only did some renaming and copy and paste of some folders from my previous app to this app. The app bundles to 100%. but after that instead of opening my app it pops up this error message. If…
1 2 3 4
5