Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add judgment on vite packaging results #251

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ysy945
Copy link

@ysy945 ysy945 commented Aug 7, 2022

"React. CreateElement: type is invalid..." error will appear when using "vite" to package the react project
The module obtained by using “import("xxx").then (module = > console.log (module))“ syntax in vite will be marked as "symbol (symbol. Tostringtag)": "module" The judgment in the 'resolve' function is "__esmodule: true", so the packaged user of "vite" should add the judgment after "vite" packaging, otherwise the packaged user of "vite" will not be able to use

"React. CreateElement: type is invalid..." error will appear when using "vite" to package the react project
The module obtained by using “import("xxx").then (module = > console.log (module))“ syntax in vite will be marked as "symbol (symbol. Tostringtag)": "module" The judgment in the 'resolve' function is "__esmodule: true", so the packaged user of "vite" should add the judgment after "vite" packaging, otherwise the packaged user of "vite" will not be able to use
Repository owner deleted a comment from ygs-code Sep 6, 2022
Repository owner deleted a comment from ygs-code Sep 6, 2022
Repository owner deleted a comment from fangyinghua Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant