timolins / react-hot-toast

Smoking Hot React Notifications 🔥
https://react-hot-toast.com
MIT License
9.85k stars 331 forks source link

#281 causes warning when bundling with Vite #282

Open stephenglass opened 1 year ago

stephenglass commented 1 year ago

In version 2.4.1 with PR #281 I get the following warning when running my Vite build.

Module level directives cause errors when bundled, "use client" in "node_modules/react-hot-toast/dist/index.mjs" was ignored.
xueweiwujxw commented 1 year ago

I'm also facing the same issue, and the version of Vite I'm using is 4.2.1.

leonardssh commented 1 year ago

Same here! I'm using Vite v4.1.4

celso commented 1 month ago

Same here using rollup 4.24.0