Open
Description
What happened?
`import React, { lazy, Suspense } from 'react';
// import PageA from '~components/pageA';
const PageA = lazy(() => import('~components/pageA'));
const Main = () => {
return (
Hello, world!
<Suspense fallback={
Loading...
}>);
}
export default Main;`
正常导入是没问题的,lazy后就报错contents.85aba5ab.js:62 Uncaught Error: Cannot find module 'g4bVG'
at newRequire (contents.85aba5ab.js:62:19)
at newRequire (main.9970a2cc.js:54:18)
at newRequire (main.9970a2cc.js:46:18)
at main.9970a2cc.js:25456:27
contents.85aba5ab.js:16860 The above error occurred in one of your React components:
at Lazy
at Suspense
at div
at Main
at div
at OverlayCSUIContainer (chrome-extension://nklcmllngbklfhkgodhhmacnijcafjpf/contents.85aba5ab.js:24883:54)
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
这是在contents里面的引入
Version
Latest
What OS are you seeing the problem on?
No response
What browsers are you seeing the problem on?
No response
Relevant log output
(OPTIONAL) Contribution
- I would like to fix this BUG via a PR
Code of Conduct
- I agree to follow this project's Code of Conduct
- I checked the current issues for duplicate problems.