I'm trying to build a react package using craco in rush and pnpm, I get this error
Module not found: Error: Package path ./dist/framer-motion is not exported from package /repos/bundle-interact-copy/common/temp/node_modules/.pnpm/@shared+ui@8.0.1_rollup@1.32.1/node_modules/framer-motion (see exports field in /repos/bundle-interact-copy/common/temp/node_modules/.pnpm/@shared+ui@8.0.1_rollup@1.32.1/node_modules/framer-motion/package.json)
I have played with most of the config and typescript, but no luck.
Following are my configuration
"pnpmVersion": "6.34.0",
"rushVersion": "5.50.0",
"@craco/craco": "^6.3.0",