Open bcdanieldickison opened 1 month ago
This problem does seem to be reproducible using the Playground in SSR mode:
This problem does seem to be reproducible using the Playground in SSR mode:
Thanks! I didn't notice there was an option to enable dev-mode SSR rendering in the playground. I'll add a link to the description.
Vue version
3.4.31
Link to minimal reproduction
Steps to reproduce
When rendering SSR inside of the vite dev server with
vite.ssrLoadModule
,v-bind
inside of<style>
fails when referencing animport
-ed object from<script setup>
. Simply assigning the object to a newconst
at the script scope works around the issue, as does doing a production SSR build.App.vue:
ssr-fail.js:
What is expected?
What is actually happening?
System Info
Any additional comments?
We maintain a design-system module with various constants for color tokens. The most natural way to use these in our app components leads to this error in our dev environment.