hyperstack icon indicating copy to clipboard operation
hyperstack copied to clipboard

Installation with the template: application.js does not appear to exist

Open vindarel opened this issue 6 years ago • 4 comments

Hi,

I'm trying to follow the installation instructions from the website.

This commands:

rails new hyperstacktest -T -m https://rawgit.com/hyperstack-org/hyperstack/edge/install/rails-webpacker.rb

ends with

…
yarn add v1.19.0
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ [email protected]
info All dependencies
└─ [email protected]
Done in 1.43s.
      insert    app/assets/javascripts/application.js
The template [https://rawgit.com/hyperstack-org/hyperstack/edge/install/rails-webpacker.rb] could not be loaded. Error: The file /home/vince/bacasable/hyperstacktest/app/assets/javascripts/application.js does not appear to exist

I try to carry on:

  • I must install ruby-foreman
  • foreman start complains that there is no Procfile I create one I found on your Slack:
web:        bundle exec rails s -b 0.0.0.0
hot-loader: bundle exec hyperstack-hotloader -d app/hyperstack

but then localhost:5000 was still unreachable. Same with BASE_URL="http://localhost:5000" foreman start.

Looks like there's a missing bit in the template.

Cheers

Rails 6

ps: could you point to real world examples, preferably open source (apart from the website itself), if there are any?

vindarel avatar Nov 14 '19 16:11 vindarel

hi @vindarel we have not yet tested on Rails 6. I will get that done in the next few days. You might want to give it a spin with the non-template installer, it might just work... I think the issue is that a lot of the rails < 6 has to do with Webpacker which is now included.

barriehadfield avatar Nov 14 '19 17:11 barriehadfield

I had a go at doing that and got this:

Bundler could not find compatible versions for gem "rails":
  In snapshot (Gemfile.lock):
    rails (= 6.0.2.1)

  In Gemfile:
    rails (~> 6.0.2, >= 6.0.2.1)

rails-hyperstack (~> 1.0.alpha1.0) was resolved to 1.0.alpha1.5, which
depends on
      opal-rails (~> 0.9.4) was resolved to 0.9.5, which depends on
        rails (>= 4.1, < 6.0)

rails-hyperstack (~> 1.0.alpha1.0) was resolved to 1.0.alpha1.5, which
depends on
      rails (>= 4.0.0)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

tansaku avatar Jan 22 '20 18:01 tansaku

I ran bundle update but got the same issue ...

tansaku avatar Jan 22 '20 18:01 tansaku

Facing the same issue with rails 6.