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

Custom renderers don't render when built with Vite #97

Closed
yaffol opened this issue Aug 29, 2023 · 1 comment
Closed

Custom renderers don't render when built with Vite #97

yaffol opened this issue Aug 29, 2023 · 1 comment

Comments

@yaffol
Copy link
Contributor

yaffol commented Aug 29, 2023

When building a project using Vue 3, Vuetify Renderers 3.1.0-preview and Vite, the custom renderers do not render anything.

When run under Vite dev server, they do render.

My suspicion is this is related to how the renderers are passed as reactive objects, which is somehow being dropped or otherwise affected by the rollup stage of vite build.

Example repository: https://github.com/yaffol/json-forms-vuetify-vite-seed

Reproduction:

  1. Checkout the repo
  2. run npm run dev - the custom renderer will render
  3. run npm run build && npx serve dist - the custom renderer will not render

In debugging this, I could not cause any side-effects, such as console logs, from within the custom renderer component's setup function - when running from a vite build.

@yaffol
Copy link
Contributor Author

yaffol commented Aug 30, 2023

Duplicate of eclipsesource/jsonforms#2077 and covered in https://jsonforms.discourse.group/t/custom-renderers-not-rendering/1250/7.

I've opened a PR to add some details about how to use custom renderers to the readme #98

@yaffol yaffol closed this as completed Jan 11, 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

1 participant