Giter VIP home page Giter VIP logo

Comments (8)

tannerlinsley avatar tannerlinsley commented on May 4, 2024 1

I'll double check the babel implementation, but it should be including all of that in the build.

from query.

tannerlinsley avatar tannerlinsley commented on May 4, 2024

Double checked and this should be fine as is. This is likely because you are compiling to a target that needs babel-polyfill.

from query.

dusty avatar dusty commented on May 4, 2024

I'm having the same issue. Here is my browserlistrc. Any suggestions on how to get this working?

> 1%
not op_mini all
not dead
not ie 11

here is my babel config

module.exports = function(api) {
  api.cache(true)

  const presets = [
    ['@babel/preset-env', { useBuiltIns: 'entry', corejs: 3 }],
    ['@babel/preset-react']
  ]

  const plugins = ['react-hot-loader/babel', 'babel-plugin-styled-components']

  return { presets, plugins }
}

relevant webpack section

  {
        test: /.(js|jsx)$/,
        exclude: /node_modules/,
        use: {
          loader: 'babel-loader'
        }
      },

from query.

JaceHensley avatar JaceHensley commented on May 4, 2024

My build is a webpack build using babel-loader with the preset used in CRA with Typescript enabled

from query.

tannerlinsley avatar tannerlinsley commented on May 4, 2024

from query.

JaceHensley avatar JaceHensley commented on May 4, 2024

Unfortunately it's a closed source app, but I'll take a stab at making a reproducible test case, I'll start with the example in this repo

from query.

JaceHensley avatar JaceHensley commented on May 4, 2024

Okay I think I see what the problem is. So I'm not using CRA but my own webpack.config.ts that is inspired by CRA but I don't have the react-app-polyfill stuff. I already have a polyfill.ts so I should be able to add the babel ones there

from query.

vikasaditya avatar vikasaditya commented on May 4, 2024

This comes everytime in nextjs projects. Heres the link to sandbox https://codesandbox.io/s/nifty-saha-s2k7d . Tried in local also same result.

from query.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.