Closed determinationlove closed 7 months ago
OMG I found the solution... https://github.com/withastro/astro/issues/5657
place this
import { FaCircleUser } from "react-icons/fa6";
Change to this
import { FaCircleUser } from "react-icons/fa6/index"; // add "index"
Describe the bug
Expected behavior
Under normal circumstances, it should be able to build smoothly
Minimal sample repository URL
https://github.com/react-icons/react-icons/issues/754
Steps To Reproduce
1.
2. Vercel Deploy
3. SyntaxError: Named export 'FaCircleUser' not found. The requested module 'react-icons/fa6/index.esm.js' is a CommonJS module, which may not support all module.exports as named exports.
Package version
^4.11.0
Relevant log output
Additional context
No response