Skip to content

Debugging help

Eric Weitz edited this page Sep 16, 2022 · 3 revisions

A dedicated spot to collect issues and the associated solutions developers come across when installing, building, and developing this repo.

Vault

Related to M1 development

  • Encountering issues running Docker with an error like: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested, try building the docker image with the --platform option: i.e. docker build -t imagename --platform linux/x86_64 . (source)
  • If you are trying to install using rbenv and encountering an issue with signing into the portal booted up on localhost try using rvm to install ruby instead

Persistent Vite error blocking page load

Problem

  • Pages in local SCP do not load completely, and
  • Browser DevToools console persistently reports problems not solved by simply restarting Vite or Rails, and
  • Rails stdout reports an error like:
ActionController::RoutingError (No route matches [GET] "/vite-dev/__vite_ping"):
  
Error during failsafe response: undefined method `[]' for #<ActionDispatch::PublicExceptions:0x000000010cd97530 @public_path=#<Pathname:/Users/eweitz/RubymineProjects/single_cell_portal_core/public>>

        response[1]["X-Cascade"] == "pass" ? pass_response(status) : response

Solution

  • rm -rf node_modules then yarn install
Clone this wiki locally