You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warp is using browser field in package.json to exclude some of the modules (including vm2 library which is used only in server environment). It works fine in the bundles I've tested (webpack, parcel and web bundles). Seems that vite is not interpreting this field properly. Check out e.g. this issue - vitejs/vite#7576. Vite seems to have a fix for this but it's not yet merged - vitejs/vite#8709. I seems to be more vite-side problem. We should wait for the mentioned fix. However, we can by make Warp working in vite by adding vm2 to exclude array in vite.config.ts
Warp is using browser field in package.json to exclude some of the modules (including vm2 library which is used only in server environment). It works fine in the bundles I've tested (webpack, parcel and web bundles). Seems that vite is not interpreting this field properly. Check out e.g. this issue - vitejs/vite#7576. Vite seems to have a fix for this but it's not yet merged - vitejs/vite#8709. I seems to be more vite-side problem. We should wait for the mentioned fix. However, we can by make Warp working in vite by adding vm2 to exclude array in vite.config.ts
Additionally, we should change how VM2 is imported and not import its modules directly.
The text was updated successfully, but these errors were encountered: