You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
正常导入是没问题的,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.
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={
);
}
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:
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
Code of Conduct
The text was updated successfully, but these errors were encountered: