Added by Stéphane V over 7 years ago
After a fresh install of Openproject (stable/7), I get the following error message when accessing localhost:3000 for the first time :
Showing /home/stephane/www/openproject8/app/views/homescreen/blocks/_upsale.html.erb where line #6 raised:
File to import not found or unreadable: bundles/openproject-core-app.@
Tutorial followed for installation :
https://www.openproject.org/development/setting-up-development-environment/
Configuration :
I suspect an issue in app/assets/stylesheets/openproject.sass:43 , as indicated by the error trace… but this app should work out of the box…
Is this related to Foundation ?
Replies (2)
You are using the development only guide for setting up OpenProject. In this environment, you need to manually compile the assets with webpack so the dev server can find it. See the command
Webpack bundling
in the guide you linked to.Unless you’re trying to develop for OpenProject, this setup is unsuitable for any productive use. Instead, either use the packages provided by us or follow the manual installation guide. This is mostly identical to the development guide, but will precompile the assets and generate the required secrets to run OpenProject in production.
Yes. Indeed. The compilation of webpack elements was mising. Running this command (in a separate window) solved the issue
RAILS_ENV=development npm run webpack-watch
And yes, I’m trying to build a development environment with OP7 and not a production environment. The only thing is that I don’t know angularJS yet… so building javacript in development was new to me… ;
) learning everyday ;)