motiondivision / motion

A modern animation library for React and JavaScript
https://motion.dev
MIT License
25.67k stars 843 forks source link

[BUG] Error when using sourcemap for reporting an error: Can't resolve original location of error. #2828

Open dande-sun opened 1 month ago

dande-sun commented 1 month ago

When exec npm run build in terminal of vite project, I got below errors: rlv-node | 03:19:49 [vite] ✓ built in 54.33s rlv-node | 03:19:49 [build] ✓ Completed in 54.41s. rlv-node | rlv-node | building client (vite) rlv-node | 03:19:49 [vite] vite v5.4.8 building for build... rlv-node | 03:19:49 [vite] transforming... rlv-node | node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error. rlv-node | node_modules/framer-motion/dist/es/motion/index.mjs (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.

// details https://github.com/nextui-org/nextui/issues/3857