Closed aaronbushnell closed 1 week ago
I suspect there's a bug here with Codesandbox devbox. If you check node_modules
- there is no motion
folder. So the error is right because it hasn't been installed. If you then add react
or whatever via the packages dialog, both motion
and react
will be installed and the error disappears.
Hey @mattgperry, I think it was the updates you made in 11.11.13 that corrected this for me! I had some issues trying to get a Codesandbox setup but I was seeing it consistently fail until updating to 11.11.14 yesterday!
After installing
motion
and importing it into a new vanilla JS Vite project I get the following error:CodeSandbox reproduction: https://codesandbox.io/p/devbox/mycg74
Steps to reproduce the behavior:
npm create vite@latest
npm i motion
main.js
:import { animate } from "motion"
npm run dev
Expected behavior Vite should be able to locate the library