Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on watch production build. #5

Closed
hendry91 opened this issue Dec 26, 2023 · 2 comments
Closed

Issue on watch production build. #5

hendry91 opened this issue Dec 26, 2023 · 2 comments

Comments

@hendry91
Copy link

hendry91 commented Dec 26, 2023

I'm working on a microfrontend project using vite-federation, and I need to rebuild every time to let the host gets the latest dist files. but when I use watchBuild, if I update the Stylex value, I encounter the following error: [vite-plugin-stylex] Could not load vite-plugin:stylex.css (imported by src/hdd/core/Spinner/BaseSpinner.tsx): rule is not iterable.

Below are my run scripts:

"scripts": {
  "build": "tsc && vite build",
  "preview": "vite preview --port 3001 --strictPort",
  "watchBuild": "concurrently \"pnpm build --watch\" \"pnpm wait-build && sleep 5 && pnpm preview\"",
  "wait-build": "wait-on dist/assets",
}

Could you advice on how to let the stylex can be rebuild on --watch? Thanks.

@nonzzz
Copy link
Owner

nonzzz commented Dec 27, 2023

I'll take a look

@nonzzz
Copy link
Owner

nonzzz commented Jan 30, 2024

@hendry91 A friendly ping. v0.3.0 has been released. I think this problem has been solved.

@nonzzz nonzzz closed this as completed Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants