
Next.jsでError: error:0308010C:digital envelope routines::unsupportedを直す方法
Next.jsで下記のようなエラーが発生した場合、Nodeのバージョンが高すぎるのが原因です。
Error: error:0308010C:digital envelope routines::unsupported
これを解決するには、最低でもnodeのバージョンを v14.18.1まで下げる必要がある。
nodebrewを使っていれば、下記の記事でそのやり方は分かります。
参考にした記事は下記の通り
To Solve Failed to construct transformer: Error: error:0308010C:digital envelope routines::unsupported Error Simplest and easiest solution is Just downgrade node to v14.18.1 . And then Just delete node_modules and then try to rebuild your project and your error must be solved.