Replies: 1 comment 2 replies
-
|
Please create a minimal reproducible example, you have provided enough information but it is not enough to isolate the problem, thank you |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
when open a component, and the page not work,and i found the error "Cannot read properties of undefined (reading 'Z')", read Re;
and the origin code is like below:
lib/listview/index.js:
and i try to found the “Re” defined like this:
and In development mode, it worked, no bug, and the origin code is like this:
and i found the reason: because i use splitChunk to optimize my project; there all 4 chunk out:
the "Grid" component just directly import in attibute page (page chunk id is 982); so the webpack optimize the code。 but in other page, i use "ListView" component; and It use "Grid" component;they are all the children of the lib,export from lib/index.js
the relation just like this:

What is the current behavior?
it worked in development mode, and it crash in prod compile mode; and it show up after i splitChunk my project, but the split config is some in both mode;
If the current behavior is a bug, please provide the steps to reproduce.
if this is not a bug, how can i prevent this happen:
What is the expected behavior?
it worked, no bug;
Other relevant information:
webpack version: 5
Node.js version: 14
Operating System: macos
Additional tools:
Beta Was this translation helpful? Give feedback.
All reactions