Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant Able to run and build #291

Open
gitsofaryan opened this issue Nov 10, 2023 · 2 comments
Open

Cant Able to run and build #291

gitsofaryan opened this issue Nov 10, 2023 · 2 comments

Comments

@gitsofaryan
Copy link

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

  • hash:69 new Hash
    node:internal/crypto/hash:69:19

  • node:crypto:133 Object.createHash
    node:crypto:133:10

  • getHashDigest.js:46 getHashDigest
    [Personal-Portfolio]/[loader-utils]/lib/getHashDigest.js:46:34

  • interpolateName.js:113
    [Personal-Portfolio]/[loader-utils]/lib/interpolateName.js:113:11

  • String.replace

  • interpolateName.js:110 interpolateName
    [Personal-Portfolio]/[loader-utils]/lib/interpolateName.js:110:8

  • index.js:29 Object.loader
    [Personal-Portfolio]/[file-loader]/dist/index.js:29:48

  • index.js:127 Object.loader
    [Personal-Portfolio]/[url-loader]/dist/index.js:127:19

  • NormalModule.js:764 processResult
    [Personal-Portfolio]/[webpack]/lib/NormalModule.js:764:19

  • NormalModule.js:866
    [Personal-Portfolio]/[webpack]/lib/NormalModule.js:866:5

  • LoaderRunner.js:399
    [Personal-Portfolio]/[loader-runner]/lib/LoaderRunner.js:399:11

  • LoaderRunner.js:251
    [Personal-Portfolio]/[loader-runner]/lib/LoaderRunner.js:251:18

  • LoaderRunner.js:156 runSyncOrAsync
    [Personal-Portfolio]/[loader-runner]/lib/LoaderRunner.js:156:3

  • LoaderRunner.js:250 iterateNormalLoaders
    [Personal-Portfolio]/[loader-runner]/lib/LoaderRunner.js:250:2

  • LoaderRunner.js:223
    [Personal-Portfolio]/[loader-runner]/lib/LoaderRunner.js:223:4

  • NormalModule.js:840
    [Personal-Portfolio]/[webpack]/lib/NormalModule.js:840:15

  • CachedInputFileSystem.js:43 runCallbacks
    [Personal-Portfolio]/[enhanced-resolve]/lib/CachedInputFileSystem.js:43:15

  • CachedInputFileSystem.js:249
    [Personal-Portfolio]/[enhanced-resolve]/lib/CachedInputFileSystem.js:249:5

  • graceful-fs.js:123
    [Personal-Portfolio]/[webpack]/[graceful-fs]/graceful-fs.js:123:16

  • read_file_context:68 FSReqCallback.readFileAfterClose [as oncomplete]
    node:internal/fs/read_file_context:68:3

not finished Building development bundle - 21.140s

facing this
on Windows 11

@gitsofaryan
Copy link
Author

@bchiang7

@phuducnguyen
Copy link

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

rm -rf node_modules yarn.lock
npm install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants