Content
You are here:
Cannot resolve module jquery-ui when installing
Added by Neven Boric about 8 years ago
I’m following this guide:
https://www.openproject.org/open-source/download/manual-installation-guide/
Only that I changed the branch to get the most current release:
git clone https://github.com/opf/openproject-ce.git --branch stable/6 --depth 1
When I get to precompile the assets I get the following error:
ERROR in /home/openproject/openproject-ce/vendored-plugins/openproject-backlogs/frontend/app/openproject-backlogs-app.js Module not found: Error: Cannot resolve module 'jquery-ui/ui/jquery-ui.js' in /home/openproject/openproject-ce/vendored-plugins/openproject-backlogs/frontend/app @ /home/openproject/openproject-ce/vendored-plugins/openproject-backlogs/frontend/app/openproject-backlogs-app.js 47:0-36
And then a bunch of other errors.
Any help is appreciated
Full command output is:
RAILS_ENV="production" ./bin/rake assets:precompile $(npm bin)/webpack --config webpack.production.config.js {"omniauth-openid-connect":"/home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac","omniauth-openid_connect-providers":"/home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid_connect-providers-86f3670e127e","omniauth-saml":"/home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-saml-5559d6b80805","openproject-auth_plugins":"/home/openproject/openproject-ce/vendored-plugins/openproject-auth_plugins","openproject-auth_saml":"/home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/bundler/gems/openproject-auth_saml-97212abb8378","openproject-pdf_export":"/home/openproject/openproject-ce/vendored-plugins/openproject-pdf_export","openproject-backlogs":"/home/openproject/openproject-ce/vendored-plugins/openproject-backlogs","openproject-costs":"/home/openproject/openproject-ce/vendored-plugins/openproject-costs","openproject-documents":"/home/openproject/openproject-ce/vendored-plugins/openproject-documents","openproject-webhooks":"/home/openproject/openproject-ce/vendored-plugins/openproject-webhooks","openproject-github_integration":"/home/openproject/openproject-ce/vendored-plugins/openproject-github_integration","openproject-global_roles":"/home/openproject/openproject-ce/vendored-plugins/openproject-global_roles","openproject-local_avatars":"/home/openproject/openproject-ce/vendored-plugins/openproject-local_avatars","openproject-meeting":"/home/openproject/openproject-ce/vendored-plugins/openproject-meeting","openproject-my_project_page":"/home/openproject/openproject-ce/vendored-plugins/openproject-my_project_page","openproject-openid_connect":"/home/openproject/openproject-ce/vendored-plugins/openproject-openid_connect","reporting_engine":"/home/openproject/openproject-ce/vendored-plugins/reporting_engine","openproject-reporting":"/home/openproject/openproject-ce/vendored-plugins/openproject-reporting","openproject-themes-dark":"/home/openproject/openproject-ce/vendored-plugins/openproject-themes-dark","openproject-translations":"/home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/bundler/gems/openproject-translations-da52ff92cdcd","openproject-xls_export":"/home/openproject/openproject-ce/vendored-plugins/openproject-xls_export"} Applying webpack.optimize plugins for production. Hash: bf45a797e56f83842994 Version: webpack 1.13.3 Child Hash: bf45a797e56f83842994 Version: webpack 1.13.3 Time: 43172ms Asset Size Chunks Chunk Names 7b9776076d5fceef4993b55c9383dedd.gif 1.85 kB [emitted] openproject-core-app.js 1.71 MB 0 [emitted] core-app openproject-global.js 1.48 MB 1 [emitted] global openproject-costs.js 44.4 kB 2 [emitted] costs openproject-my_project_page.js 8.69 kB 3 [emitted] my_project_page openproject-backlogs.js 1.02 kB 4 [emitted] backlogs openproject-core-app.css 4.09 kB 0 [emitted] core-app openproject-global.css 42.2 kB 1 [emitted] global [261] ./components ^((?!\.(test|spec)).)*\.(js|ts|html)$ 16.3 kB {0} [built] [262] ./templates \.html$ 1.22 kB {0} [built] [1096] /home/openproject/openproject-ce/vendored-plugins/openproject-costs/frontend/app/components ^((?!\.(test|spec)).)*\.(js|ts)$ 425 bytes {2} [built] [1097] /home/openproject/openproject-ce/vendored-plugins/openproject-my_project_page/frontend/app/components ^((?!\.(test|spec)).)*\.(js|ts)$ 330 bytes {3} [built] + 1112 hidden modules ERROR in /home/openproject/openproject-ce/vendored-plugins/openproject-backlogs/frontend/app/openproject-backlogs-app.js Module not found: Error: Cannot resolve module 'jquery-ui/ui/jquery-ui.js' in /home/openproject/openproject-ce/vendored-plugins/openproject-backlogs/frontend/app @ /home/openproject/openproject-ce/vendored-plugins/openproject-backlogs/frontend/app/openproject-backlogs-app.js 47:0-36
Replies (3)
Hi Neven,
there’s been a faulty 6.1.4 release that’s also causing your manual installation to fail. Please reset your head to the latest stable/6 by using
git reset --hard origin/stable/6
(this reverts all changes you made locally!).After that, please re-run migrations and asset precompilation steps.
Bug report:
Best,
Oliver
Thanks, Oliver
I will try upgrading later today
Regards
Neven
It worked. Thanks.