- Install Node.js which includes Node Package Manager
Install dependencies
npm install
For developement mode run
npm run dev
For production release run
npm run build
if you encounter such error during the build:
[webpack-cli] HookWebpackError: item.node is not a function
at makeWebpackError (D:\Work\webpack-sources-issue\node_modules\webpack\lib\HookWebpackError.js:49:9)
at D:\Work\webpack-sources-issue\node_modules\webpack\lib\Compilation.js:1995:11
at eval (eval at create (D:\Work\webpack-sources-issue\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:17:1)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
-- inner error --
TypeError: item.node is not a function
at D:\work\webpack-sources-issue\node_modules\webpack-sources\lib\ConcatSource.js:59:50
at Array.map (<anonymous>)
...
Make sure you have this PR applied