bchiang7 / v4

Fourth iteration of my personal website built with Gatsby
https://v4.brittanychiang.com/
MIT License
7.38k stars 3.62k forks source link

Cant Able to run and build #291

Open gitsofaryan opened 8 months ago

gitsofaryan commented 8 months ago

ERROR UNKNOWN

Module build failed (from ./node_modules/url-loader/dist/cjs.js): Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:69:19) at Object.createHash (node:crypto:133:10) at getHashDigest (C:\Users\ARYAN\Desktop\Aryan Jain\Personal-Portfolio\node_modules\loader-utils\lib\getHashDigest.js:46:34) at C:\Users\ARYAN\Desktop\Aryan Jain\Personal-Portfolio\node_modules\loader-utils\lib\interpolateName.js:113:11 at String.replace () at interpolateName (C:\Users\ARYAN\Desktop\Aryan Jain\Personal-Portfolio\node_modules\loader-utils\lib\interpolateName.js:110:8) at Object.loader (C:\Users\ARYAN\Desktop\Aryan Jain\Personal-Portfolio\node_modules\file-loader\dist\index.js:29:48) at Object.loader (C:\Users\ARYAN\Desktop\Aryan Jain\Personal-Portfolio\node_modules\url-loader\dist\index.js:127:19)

ModuleBuildError: Module build failed (from ./node_modules/url-loader/dist/cjs.js): Error: error:0308010C:digital envelope routines::unsupported

not finished Building development bundle - 21.140s

facing this on Windows 11

gitsofaryan commented 8 months ago

@bchiang7

phuducnguyen commented 7 months ago

hi @gitsofaryan, Clearing node packages and re-installing them fixed the problem. Try following commands

rm -rf node_modules yarn.lock
npm install