Skip to content

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
Development

Successfully merging this pull request may close these issues.

1 participant