react-hot-toast icon indicating copy to clipboard operation
react-hot-toast copied to clipboard

#281 causes warning when bundling with Vite

Open stephenglass opened this issue 2 years ago • 3 comments

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.

stephenglass avatar May 04 '23 00:05 stephenglass

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

xueweiwujxw avatar May 05 '23 10:05 xueweiwujxw

Same here! I'm using Vite v4.1.4

leonardssh avatar Jun 20 '23 12:06 leonardssh