S
S
svilkov872018-11-23 08:03:27
webpack
svilkov87, 2018-11-23 08:03:27

How to find out this information about Webpack?

Hello.
Faced such a problem.
Zayuzal vue-cli (not 3rd). I started setting up the MiniCssExtractPlugin plugin in webpack.config.js.
npm run build gives an error:

const { Template, util: { createHash } } = _webpack2.default;
                          ^
TypeError: Cannot destructure property `createHash` of 'undefined' or 'null'.

It seems that they write on the forums that you need to update the webpack and the problem will be fixed.
In this regard, a few questions:
  1. How can I find out the current version of webpack? ( webpack -v gives - webpack: command not found
  2. Is there any way to know if webpack is installed globally or locally?
  3. How to update webpack (what exactly is this command?)

PS: I have Linux Mint

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danila, 2018-11-23
@svilkov87

How can I find out the current version of webpack? ( webpack -v gives - webpack: command not found

in the project directory writenpm list webpack
locally npm list webpack
globallynpm list webpack -g --depth 0
npm remove webpack -D && npm i webpack -D

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question