Hey! I'm searching for someone with a bit of JS kn...
# opensavvy
c
Hey! I'm searching for someone with a bit of JS knowledge to help me understand what is going wrong over here: https://gitlab.com/opensavvy/automation/kotlin-vite-showcase-mui/-/jobs/6650041034#L624 It's a React project that I'm trying to migrate to the Vite plugin to serve as a sample, and it crashes with:
Copy code
1: import * as React from 'react';
2: import { useContext, forwardRef } from 'react';
            ^
3: import createCache from '@emotion/cache';
4: import _extends from '@babel/runtime/helpers/esm/extends';
error during build:
RollupError: ../../../js/node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js (2:9): "useContext" is not exported by "../../../js/node_modules/react/index.js", imported by "../../../js/node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js".
If you have any idea what this could be caused by, please get in touch 🙂