Skip to content

add judgment on vite packaging results - #251

Open
ysy945 wants to merge 1 commit into
jamiebuilds:masterfrom
ysy945:master
Open

add judgment on vite packaging results#251
ysy945 wants to merge 1 commit into
jamiebuilds:masterfrom
ysy945:master

Conversation

@ysy945

@ysy945 ysy945 commented Aug 7, 2022

Copy link
Copy Markdown

"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

1 participant