Error
Vercel에서 Front를 배포하던 중 다음과 같이 Error 코드가 났다.
Couldn't find any versions for "@solana/fast-stable-stringify" that matches "workspace:*"
Error가 발생하는 시점을 확인해보니 Vercel에서 앱을 Build할시에 발생하는 Error였다.
먼저 로컬 환경에서 Build시에는 Error가 나지 않았고 Vercel 공식 문서를 찾아보았는데 처음에는 Vercel에서 지원하는 Yarn의 Version문제인 듯하여서 로컬환경의 Yarn을 Downgrade를 시키고 작업을 해야 하나 하던 찰나 Vercel공식문서에서 해결법을 찾았다.
https://vercel.com/guides/deploying-yarn-monorepos-to-vercel#connect-all-the-pieces-with-yarn-workspaces
How to Deploy a Monorepo to Vercel Using Yarn Workspaces
In this guide, you will deploy a monorepo that includes two frontend applications and one shared library with Yarn workspaces.
vercel.com
Connect all the pieces with Yarn workspaces
"workspaces": [
"apps/*",
"packages/*"
]
위 코드를 package.json에 추가해주고 다시 푸시해 주었더니 해결되었다.
위 코드를 추가해야 Yarn 의 workspaces 를 Vercel에서 배포하는 환경에서도 적용 가능한듯 하였다.