maglev
WebsiteGithub
  • Introduction
  • Quick start
  • Concepts
    • Overview
    • Site
    • Theme
    • Page
    • Section
    • Setting
    • Block
  • Guides
    • Create a new section
    • Setup collections
    • Personalize the editor
    • Setup multiple languages
    • Secure the editor
    • Build a menu section
    • Render a section outside the Maglev layout
    • Use an icon library
    • Upgrades
    • Troubleshooting
  • Integrations
    • Avo
  • Pro
    • Introduction
    • Getting started
Powered by GitBook
On this page
  • I can't get into the editor, I see errors related to Vite in my logs
  • In my terminal, I see the following error:
  • I'v upgraded my Ruby version and I see errors related to Vite in my logs

Was this helpful?

  1. Guides

Troubleshooting

PreviousUpgradesNextAvo

Last updated 5 months ago

Was this helpful?

We suggest you first search for your error message in the .

I can't get into the editor, I see errors related to Vite in my logs

There's a chance that Vite-ruby wasn't installed, or that errors occurred during the installation process.

First, make sure you have yarn installed on your machine. Then, re-run these two steps of the installation procedure:

bundle exec rails maglev:vite:install_dependencies
bundle exec rails maglev:vite:build_all

In my terminal, I see the following error:

Building with Vite ⚡️
Usage Error: Couldn't find the node_modules state file - running an install might help (findPackageLocation)

The Maglev editor UI is a VueJS application and therefore it requires a couple of Javascript libraries to be built by Vite. Those Javascript libraries seems to not be installed. To install them, type:

bundle exec rails maglev:vite:install_dependencies

I'v upgraded my Ruby version and I see errors related to Vite in my logs

Vite Ruby can't find entrypoints/editor.js in the manifests.

You need to re-generate the Maglev editor UI assets with the following commands:

bundle exec rails maglev:vite:install_dependencies
bundle exec rails maglev:vite:build_all
project issues on Github