Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

215
Views
babel target to old version browser, it raise export 'jsx' (imported as '_jsx') was not found in 'react/jsx-runtime' (possible exports: __esModule)

following is my babel.config.js, it raise err export 'jsx' (imported as '_jsx') was not found in 'react/jsx-runtime' (possible exports: __esModule)

but when change chrome:54 to chrome: 74, no err is raised

I expect my app is support chrome:54(chrome min version to support es6), how should i do?

module.exports = {
    presets: [
        ["@babel/preset-env", {
            "useBuiltIns": "usage",
            "corejs": 3, // or 2,
            "targets": {
                "chrome": "54"
            },
            "exclude": ["@babel/plugin-transform-regenerator", "@babel/plugin-transform-arrow-functions"]
        }],
        ["@babel/preset-react", {
            "runtime": "automatic"
        }]
    ]
}

my babel deps:

    "@babel/core": "^7.15.5",
    "@babel/preset-env": "^7.15.6",
    "@babel/preset-react": "^7.13.13",
    "babel-loader": "^8.2.2",
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I find solution, babel ignore some deps will fix this err

see in https://stackoverflow.com/a/69717337/6011193

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!