NPM build fail "Module build failed (from ./node_modules/svgo-loader/index.js): TypeError: loadConfig is not a function"

Created on 8 May 2024, 8 months ago
Updated 23 May 2024, 7 months ago

Problem/Motivation

Build library fails with error like

Module build failed (from ./node_modules/svgo-loader/index.js):
TypeError: loadConfig is not a function

Steps to reproduce

Build custom assets with npm run build:prod

Proposed resolution

Fix code in webpack.common.js

Workaround

Until resolved, use this workaround

npm install svgo@3.2.0 --save-exact --save-dev

and buil work again.

🐛 Bug report
Status

Fixed

Version

2.7

Component

Code

Created by

🇮🇹Italy arturopanetta Grotteria (RC)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024