[webpack-cli] TypeError: compiler.plugin is not a function

Created on 5 July 2023, about 1 year ago
Updated 21 July 2023, about 1 year ago

System setup:
- Lando (for local development)
- Drupal
- Bootstrap Italia Theme installed with README.md (following the latest release)

Problem at Manage Bootstrap Italia Library, Section B.
https://git.drupalcode.org/project/bootstrap_italia/-/tree/2.6.x#manage-bootstrap-italia-library

When I run the command npm run watch:dev I got this error:

> bootstrap_italia@2.6.0 watch:dev
> cross-env NODE_ENV=development webpack --watch --progress --config ./webpack.dev.js

[webpack-cli] TypeError: compiler.plugin is not a function
at SVGSpritePlugin.apply
at createCompiler
at create 

How can I solve it? I tried with other solution found online but they didn't work.

🐛 Bug report
Status

Postponed: needs info

Version

2.6

Component

Code

Created by

🇮🇹Italy J0hn3ch

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024