-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix(dashboard): Enable dashboard React JSX compilation #3726
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
base: master
Are you sure you want to change the base?
fix(dashboard): Enable dashboard React JSX compilation #3726
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (6)📓 Common learnings📚 Learning: applies to packages/dashboard/src/**/*.{tsx,jsx} : use react for all ui components in the dashboard ...Applied to files:
📚 Learning: applies to packages/dashboard/src/lib/components/**/*.{tsx,jsx} : use shadcn ui and tailwind css for...Applied to files:
📚 Learning: applies to packages/dashboard/src/**/*.{tsx,jsx} : prefer re-using components from /src/lib/componen...Applied to files:
📚 Learning: applies to packages/dashboard/src/**/*.{ts,tsx} : when performing mutations, follow the provided use...Applied to files:
📚 Learning: applies to packages/dashboard/src/**/*.{tsx,ts} : react component props objects should be typed as r...Applied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
All contributors have signed the CLA ✍️ ✅ |
|
|
I have read the CLA Document and I hereby sign the CLA |
|
This should not be necessary, as we are processing the JSX differently. The compilation in that case is only for the Vendure config and plugins discovery. Can you please open an issue and add a minimal reproduction repo of your setup, where it is not able to find the extensions? |
|
You're right, this shouldn't be necessary. However, the dashboard compilation is failing because it tries to process React JSX from the Vendure plugins themselves, not from the dashboard's own code. For example, plugins that use React for rendering rich-text emails or PDF invoices are causing the build to fail. Should a reproduction still be needed, I can create a minimal example. I'll use a clean |
|
I removed the word "extensions" from the title because it is rather confusing in this context. |
|
Thank you for the detailed information, that helps us a lot! We'll look into that! |
|
FYI, I only tested the proposed compile option |
|
It's also worth noting that in my test project, I've overridden the |



Description
Dashboard compilation is failing because React JSX templates from Vendure plugins are not being emitted during the build process. This prevents the dashboard from loading the necessary React JSX modules.
Breaking changes
Screenshots
Checklist
📌 Always:
👍 Most of the time:
Summary by CodeRabbit