maglevhq / maglev-core

Ruby on Rails website builder
https://www.maglev.dev
MIT License
273 stars 47 forks source link

Internal Error: maglev@workspace:.: This package doesn't seem to be present in your lockfile #60

Closed work-leonid closed 1 year ago

work-leonid commented 1 year ago

Hi! I am trying to install the latest version of maglev. Installing through

rails new my-awesome-site \
  -m https://raw.githubusercontent.com/maglevhq/maglev-core/master/template.rb \
  --database=postgresql \
  --skip-action-cable

An error appears during installation

image

Apparently because of this I can't get into the editor http://localhost:3000/maglev/editor/en/index

image

It might be a problem with my yarn (?). But to be honest I don't understand where to dig to fix this error

did commented 1 year ago

hey @work-leonid, it looks like a yarn/node issue.

If errors occur, please send me the raw text logs. Thanks!

malachaifrazier commented 1 year ago

I was just seeing this error, so I ran: bundle exec rails maglev:vite:install_dependencies and then bundle exec rails maglev:vite:build_all. That seems to have corrected the OP error. @did maybe add this bit of troubleshooting to the docs?

did commented 1 year ago

thanks @malachaifrazier! I've appended the first item in the troubleshooting section: https://docs.maglev.dev/guides/troubleshooting