-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
SyntaxError: Illegal property in declaration context #228
Comments
This is a Vite bug. const[d,p]=i("ScrollArea");export{p as createScrollAreaScope};const[f,h]=d("ScrollArea");export const ScrollArea=/*#__PURE__*/s.forwardRef(((e,r)=>{const{__scopeScrollArea:t,type:n="hover",scrollHideDelay:i=600,...a} To invalid js: Object.defineProperty(__vite_ssr_exports__, "createScrollAreaScope", { enumerable: true, configurable: true, get(){ return p }});const[f,h]=d("ScrollArea");const ScrollArea=/*#__PURE__*/__vite_ssr_import_9__.forwardRef(((e,r)=>{const{__scopeScrollArea:t,type:__vite_ssr_import_4__.useCallbackRef="hover",scrollHideDelay:__vite_ssr_import_6__.createContextScope=600,...a} Invalid part:
Basicly it assumes that local variable |
@sheremet-va Great finding! Fix: vitejs/vite#6224 |
Please upgrade to [email protected] |
Awesome!! thanks!!! 👏🏼👏🏼👏🏼 |
Describe the bug
Using some external UI libraries, I'm getting this error when running tests that render some components.
I'm sure the error is with the library that points to (@stitches/react), but I'm not sure what is it!, or maybe is @radix-ui/react-scroll-area?? :(
Reproduction
here's a repo with an example: https://github.com/horacioh/vitest-declaration-context-issue
you can run this commands to see the error:
System Info
The text was updated successfully, but these errors were encountered: