Closed sbland closed 2 months ago
@sbland No worries. It's totally fine to proceed. The removal of Vite CJS build won't happen in a short moment.
And BTW, the warning message was actually caught by some core Vite plugins in Vite community. So it definitely works except Vite want to break their own world. 😉
Anyway, we are keeping an eye on that and will update accordingly once the relevant core plugins are updated.
fix shipped for this. there was an issue with the component that loads ESM modules to CJS (https://bit.cloud/bitdev/node/modules/load-esm-module/~api-reference). to update run bit env update && bit update "@teambit/**,@bitdev/**
to update all deps and rerun the test/build commands.
Describe the bug
I get the following warning for a new workspace with custom react env
The CJS build of Vite's Node API is deprecated
Steps to Reproduce
bit init
bit create react-env envs/my-react-env --aspect bitdev.react/react-env
bit create react demo-component --env envs/my-react-env
bit test
Specifications
for harmony workspace
bitdev.react/react-env