forked from stackblitz/bolt.new
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Open
Description
Describe the bug
When using components that include the 'use client' directive, Vite throws build errors indicating the directive is not supported. This prevents certain UI components from compiling or running as expected within the Bolt.diy environment.
Link to the Bolt URL that caused the error
Steps to reproduce
Steps to reproduce
Open a Bolt project that uses Vite.
Add or import a React component containing 'use client' at the top.
Run the dev server or build the project.
Observe the build failing or showing compatibility errors.
Expected behavior
The components should build successfully or gracefully ignore 'use client' when running in a Vite environment.
Screen Recording / Screenshot
Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]
Provider Used
No response
Model Used
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels