Can't build the ospo.zone website
I want to locally compile and build the ospo.zone website and I get multiple errors. As I'm not a webdev, any help is appreciated to help me fix these issues.
Here is the output when launching yarn on the rename_alliance
branch (same in main):
$ yarn
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "eclipsefdn-hugo-solstice-theme > eclipsefdn-solstice-assets > laravel-mix@6.0.49" has incorrect peer dependency "@babel/preset-env@^7.15.8".
warning "eclipsefdn-hugo-solstice-theme > eclipsefdn-solstice-assets > laravel-mix@6.0.49" has incorrect peer dependency "postcss@^8.3.11".
[4/4] Building fresh packages...
$ NODE_ENV=production npm run production
> eclipsefdn-hugo-ospozone@0.7.0 production
> NODE_ENV=production webpack --progress --config=node_modules/laravel-mix/setup/webpack.config.js
Loading eclipsefdn-solstice-assets default configurations.
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
✖ Mix
Compiled with some errors in 4.14s
ERROR in ./less/styles.less
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/file-loader/dist/cjs.js):
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at getHashDigest (/home/fzara/git-repos/ospo-alliance-org/node_modules/loader-utils/lib/getHashDigest.js:46:34)
at /home/fzara/git-repos/ospo-alliance-org/node_modules/loader-utils/lib/interpolateName.js:113:11
at String.replace (<anonymous>)
at interpolateName (/home/fzara/git-repos/ospo-alliance-org/node_modules/loader-utils/lib/interpolateName.js:110:8)
at Object.loader (/home/fzara/git-repos/ospo-alliance-org/node_modules/file-loader/dist/index.js:29:48)
at processResult (/home/fzara/git-repos/ospo-alliance-org/node_modules/webpack/lib/NormalModule.js:758:19)
at /home/fzara/git-repos/ospo-alliance-org/node_modules/webpack/lib/NormalModule.js:860:5
at /home/fzara/git-repos/ospo-alliance-org/node_modules/loader-runner/lib/LoaderRunner.js:399:11
at /home/fzara/git-repos/ospo-alliance-org/node_modules/loader-runner/lib/LoaderRunner.js:251:18
at runSyncOrAsync (/home/fzara/git-repos/ospo-alliance-org/node_modules/loader-runner/lib/LoaderRunner.js:156:3)
at iterateNormalLoaders (/home/fzara/git-repos/ospo-alliance-org/node_modules/loader-runner/lib/LoaderRunner.js:250:2)
at iterateNormalLoaders (/home/fzara/git-repos/ospo-alliance-org/node_modules/loader-runner/lib/LoaderRunner.js:239:10)
at /home/fzara/git-repos/ospo-alliance-org/node_modules/loader-runner/lib/LoaderRunner.js:254:3
at runSyncOrAsync (/home/fzara/git-repos/ospo-alliance-org/node_modules/loader-runner/lib/LoaderRunner.js:143:11)
at iterateNormalLoaders (/home/fzara/git-repos/ospo-alliance-org/node_modules/loader-runner/lib/LoaderRunner.js:250:2)
at /home/fzara/git-repos/ospo-alliance-org/node_modules/loader-runner/lib/LoaderRunner.js:223:4
at /home/fzara/git-repos/ospo-alliance-org/node_modules/webpack/lib/NormalModule.js:834:15
at eval (eval at create (/home/fzara/git-repos/ospo-alliance-org/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:12:1)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
25 ERRORS in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
webpack compiled with 26 errors
npm notice
npm notice New minor version of npm available! 9.3.1 -> 9.4.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.4.2
npm notice Run npm install -g npm@9.4.2 to update!
npm notice
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Hugo and Yarn are installed according to the official documentation:
$ hugo version
hugo v0.92.2+extended linux/amd64 BuildDate=2022-02-23T16:47:50Z VendorInfo=ubuntu:0.92.2-1
$ node --version
v18.14.0
$ yarn version
yarn version v1.22.19
info Current version: 0.7.0
question New version:
Done in 13.00s.
Thank you.
/ping @cguindon @bbaldassari2kd