vite icon indicating copy to clipboard operation
vite copied to clipboard

Missing cross-env in examples

Open BleedingDev opened this issue 1 year ago • 2 comments

I tried to run Multi Example on Windows in Powershell and failed.

Fix

Add cross-env and prefix NODE_ENV=production with cross-env.

I am willing to make a PR. :)

BleedingDev avatar Nov 04 '24 21:11 BleedingDev

Hi, we are using pnpm --filter command. Can you share your error please?

gioboa avatar Nov 04 '24 21:11 gioboa

I'll do when I'm on PC, from mobile I can only point here, it's root cause of error. When I prefix those with cross-env (after their install) it works.

This command is run from top-level start with --filter you mention. :)

https://github.com/module-federation/vite/blob/04f7d5939c47fb05006f7d1b95c8cd24e41d8dcb/examples/vite-webpack-rspack/rspack/package.json#L6

BleedingDev avatar Nov 05 '24 22:11 BleedingDev

As there's been no activity for 30 days, this issue has been flagged as stale. If you'd like it to remain open, please add a comment within the next 7 days. Thank you.

github-actions[bot] avatar Nov 05 '25 16:11 github-actions[bot]