react-ace icon indicating copy to clipboard operation
react-ace copied to clipboard

Report "Cannot read property 'exports' of undefined"

Open TrendAlan opened this issue 2 years ago • 0 comments

Report "Cannot read property 'exports' of undefined" in the production environment

I can split react-ace to a separate chunk with rollup configuration in Vite and run npm run build successfully , but in the production site, it reports that the r is undefined in line 4:

import {a as e, c as t, b as o, e as n} from "./ace-builds.6d4f952e.js";
import {N as r, O as i, r as s, Q as a} from "./vendor.0b5aa9f2.js";
import {l as p, e as l} from "./lodash.5a6146ca.js";
const h = r.exports.jsx
  , d = r.exports.jsxs
  , c = r.exports.Fragment;

Version: 9.5.0

TrendAlan avatar Mar 09 '22 08:03 TrendAlan