Thread: Error with webpack
Hi guys,
I am getting following error with latest git version:
Done in 1.75s.
yarn run v0.21.3
$ yarn run webpack -- --config webpack.config.js
yarn run v0.21.3
$ "/home/zangetsu/devel/tmp/pgadmin4/web/node_modules/.bin/webpack" --config webpack.config.js
module.js:491
throw err;
^
Error: Cannot find module 'optimize-css-assets-webpack-plugin'
at Function.Module._resolveFilename (module.js:489:15)
at Function.Module._load (module.js:439:25)
at Module.require (module.js:517:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/zangetsu/devel/tmp/pgadmin4/web/webpack.config.js:11:33)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Commit:
commit c4393a7795eef18b311724f45b6c9c0dae01926d (HEAD -> master, origin/master, origin/HEAD)
Author: Surinder Kumar <surinder.kumar@enterprisedb.com>
Date: Thu Aug 31 14:50:22 2017 +0100
Hi Ladislav,
After taking the latest pull from git HEAD:
1. Install all Python dependent packages
`$ pip install -r requirements.txt`
2. Install all NPM packages
$ cd web and run yarn install
3. Run pgAdmin4 server and browse to 'http://127.0.0.1:5050'
`$ python pgAdmin4.py`
Thanks,
Surinder
On Thu, Aug 31, 2017 at 11:48 PM, Ladislav Jech <archenroot@gmail.com> wrote:
Hi guys,I am getting following error with latest git version:Done in 1.75s.yarn run v0.21.3$ yarn run webpack -- --config webpack.config.jsyarn run v0.21.3$ "/home/zangetsu/devel/tmp/pgadmin4/web/node_modules/.bin/web pack" --config webpack.config.js module.js:491throw err;^Error: Cannot find module 'optimize-css-assets-webpack-plugin' at Function.Module._resolveFilename (module.js:489:15) at Function.Module._load (module.js:439:25)at Module.require (module.js:517:17)at require (internal/module.js:11:18)at Object.<anonymous> (/home/zangetsu/devel/tmp/pgadmin4/web/webpack.config.js:11: 33) at Module._compile (module.js:573:30)at Object.Module._extensions..js (module.js:584:10)at Module.load (module.js:507:32)at tryModuleLoad (module.js:470:12)at Function.Module._load (module.js:462:3)error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
It seems you didn't run `$ yarn install`
Commit:commit c4393a7795eef18b311724f45b6c9c0dae01926d (HEAD -> master, origin/master, origin/HEAD) Author: Surinder Kumar <surinder.kumar@enterprisedb.com> Date: Thu Aug 31 14:50:22 2017 +0100