I try to open a project with the latest vite and @vitejs/plugin-react in its package.json with <Sandpack/>, but I get the following error:
typeError: _promises2.default.rm is not a function
If I downgrade dependencies to the version in the template, then everything is fine. However, I need to latest vite to support some features in project so I cannot use this older vite version.
Bug report
Packages affected
Description of the problem
I try to open a project with the latest
vite
and@vitejs/plugin-react
in its package.json with<Sandpack/>
, but I get the following error:If I downgrade dependencies to the version in the template, then everything is fine. However, I need to latest vite to support some features in project so I cannot use this older vite version.
What were you doing when the problem occurred?
What steps can we take to reproduce the problem?
I created a repo to reproduce this issue: https://github.com/issueset/sandpack-vitest-bug
And you should see the same error as the following screenshot:
Link to sandbox: [link]() (optional)
N/A
Your Environment