Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. error upgrading OP: Cannot resolve module [SOLVED]

error upgrading OP: Cannot resolve module [SOLVED]

Added by Alessandro Proglio about 9 years ago

Hello,
I’m trying to upgrade from 5.0.5 to 5.0.15, I’m not using the packaged version since my server has ubuntu 12.4. I’ve tried to put together from different guides the correct sequence of commands in order to upgrade, but there’s something wrong.

git reset --hard

git fetch

git checkout v5.0.15

bundle install --no-deployment

RAILS_ENV="production" bundle exec rake tmp:clear

npm install

RAILS_ENV="production" bundle exec rake db:migrate db:seed assets:precompile

but I get the following error:

$(npm bin)/webpack --config webpack.config.js
{"openproject-translations":"/home/openproject/openproject/vendor/bundle/ruby/2.1.0/bundler/gems/openproject-translations-c5146cc45b62"}
ts-loader: Using typescript@1.7.5 and /home/openproject/openproject/frontend/tsconfig.json
Hash: 16c05cc4f4d3e1683c45
Version: webpack 1.10.0
Time: 104483ms
                               Asset     Size  Chunks             Chunk Names
7b9776076d5fceef4993b55c9383dedd.gif  1.85 kB          [emitted]
             openproject-core-app.js  5.15 MB       0  [emitted]  core-app
               openproject-global.js  2.59 MB       1  [emitted]  global
         openproject-translations.js   628 kB       2  [emitted]  translations
            openproject-core-app.css  4.63 kB       0  [emitted]  core-app
              openproject-global.css  30.6 kB       1  [emitted]  global
 [952] ./templates \.html$ 3.16 kB {0} [built]
[1024] ./components ^((?!\.(test|spec)).)*\.(js|ts|html)$ 7.05 kB {0} [built]
[1257] /home/openproject/openproject/vendor/bundle/ruby/2.1.0/bundler/gems/openproject-translations-c5146cc45b62/config/locales nonrecursive js-[\w|-]{2,5}\.yml$ 714 bytes {2} [built]
    + 1291 hidden modules

ERROR in ./global.js
Module not found: Error: Cannot resolve module 'angular-ui-select/dist/select' in /home/openproject/openproject/frontend/app
 @ ./global.js 70:0-40

ERROR in ./global.js
Module not found: Error: Cannot resolve module 'angular-ui-select/dist/select.css' in /home/openproject/openproject/frontend/app
 @ ./global.js 71:0-44

ERROR in ./global.js
Module not found: Error: Cannot resolve module 'angular-hypermedia' in /home/openproject/openproject/frontend/app
 @ ./global.js 73:0-29

ERROR in ./global.js
Module not found: Error: Cannot resolve module 'linkheader-parser' in /home/openproject/openproject/frontend/app
 @ ./global.js 74:0-28

ERROR in ./global.js
Module not found: Error: Cannot resolve module 'mediatype-parser' in /home/openproject/openproject/frontend/app
 @ ./global.js 75:0-27

ERROR in ./global.js
Module not found: Error: Cannot resolve module 'uri-templates' in /home/openproject/openproject/frontend/app
 @ ./global.js 76:0-43

ERROR in ./openproject-app.js
Module not found: Error: Cannot resolve module 'ng-file-upload/ng-file-upload' in /home/openproject/openproject/frontend/app
 @ ./openproject-app.js 64:0-23
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 5 hidden modules

and the homepage of my installation is missing some functionalities (no dropdown menu)
what’s wrong?


Replies (10)

RE: error upgrading OP: Cannot resolve module - Added by Oliver Günther about 9 years ago

Hey Allesandro,

did you run npm install ? If so, what is its output?

The error is related to npm missing a module.

Best,
Oliver

RE: error upgrading OP: Cannot resolve module - Added by Alessandro Proglio about 9 years ago

yes, npm install returns:

openproject@server03:~/openproject$ npm install



> openproject@0.1.0 postinstall /home/openproject/openproject
> cd frontend && npm install


npm WARN package.json openproject-frontend@0.1.0 No repository field.
npm WARN package.json openproject-frontend@0.1.0 No license field.



> openproject-frontend@0.1.0 postinstall /home/openproject/openproject/frontend
> bower install --config.interactive=false


RE: error upgrading OP: Cannot resolve module - Added by Oliver Günther about 9 years ago

That output is only an unrelated warning.

What version of npm and node are you using?

RE: error upgrading OP: Cannot resolve module - Added by Alessandro Proglio about 9 years ago

npm -v
2.11.3

node -v
v0.12.7

RE: error upgrading OP: Cannot resolve module - Added by Alessandro Proglio about 9 years ago

I’ve tried to manually install the missing modules,

 npm install uri-templates  mediatype-parser angular-hypermedia linkheader-parser angular-ui-select

but still something is missing:

openproject@server03:~/openproject$ RAILS_ENV="production" bundle exec rake assets:precompile
$(npm bin)/webpack --config webpack.config.js
{"openproject-translations":"/home/openproject/openproject/vendor/bundle/ruby/2.1.0/bundler/gems/openproject-translations-c5146cc45b62"}
ts-loader: Using typescript@1.7.5 and /home/openproject/openproject/frontend/tsconfig.json
Hash: 25224bf505e293ce9916
Version: webpack 1.10.0
Time: 97542ms
                               Asset     Size  Chunks             Chunk Names
7b9776076d5fceef4993b55c9383dedd.gif  1.85 kB          [emitted]
             openproject-core-app.js  5.15 MB       0  [emitted]  core-app
               openproject-global.js  2.67 MB       1  [emitted]  global
         openproject-translations.js   628 kB       2  [emitted]  translations
            openproject-core-app.css  4.63 kB       0  [emitted]  core-app
              openproject-global.css  30.6 kB       1  [emitted]  global
 [952] ./templates \.html$ 3.16 kB {0} [built]
[1024] ./components ^((?!\.(test|spec)).)*\.(js|ts|html)$ 7.05 kB {0} [built]
[1262] /home/openproject/openproject/vendor/bundle/ruby/2.1.0/bundler/gems/openproject-translations-c5146cc45b62/config/locales nonrecursive js-[\w|-]{2,5}\.yml$ 714 bytes {2} [built]
    + 1296 hidden modules

ERROR in ./global.js
Module not found: Error: Cannot resolve module 'angular-ui-select/dist/select' in /home/openproject/openproject/frontend/app
 @ ./global.js 70:0-40

ERROR in ./global.js
Module not found: Error: Cannot resolve module 'angular-ui-select/dist/select.css' in /home/openproject/openproject/frontend/app
 @ ./global.js 71:0-44

ERROR in ./openproject-app.js
Module not found: Error: Cannot resolve module 'ng-file-upload/ng-file-upload' in /home/openproject/openproject/frontend/app
 @ ./openproject-app.js 64:0-23

RE: error upgrading OP: Cannot resolve module - Added by Alessandro Proglio about 9 years ago

for instance, I’m using the repository openproject, not openproject-ce. Is it relevant?

RE: error upgrading OP: Cannot resolve module - Added by Oliver Günther about 9 years ago

Nope, that should not make any difference.

Not sure where exactly that error stems from, but it must be related to your node installation. Can you try to remove the frontend/node_modules folder and re-install with npm install, ensuring that the modules printed in your comment are installed into frontend/node_modules/<angular-ui-select/ng-file-upload>/.. etc?

Best,
Oliver

RE: error upgrading OP: Cannot resolve module - Added by Alessandro Proglio about 9 years ago

I can’t find those modules in frontend/node_modules. I fear that during the latest upgrade I did something wrong.

I’m now trying to reinstall OP in another directory and restore the backup and the attachments.

RE: error upgrading OP: Cannot resolve module - Added by Alessandro Proglio about 9 years ago

the new installation is working fine. I do not investigate further the problem since probably it is due to something that I screwed up.

RE: error upgrading OP: Cannot resolve module [SOLVED] - Added by Oliver Günther about 9 years ago

Hey Allessandro,

thanks for the update. If the node_modules are missing, somehow npm wasn’t doing what its supposed to do.

Sorry we could not be of more help, but I’m glad you could resolve it by the rather drastic re-installation.

Best,
Oliver

  • (1 - 10/10)
Loading...