Skip to content

404 on bin/vite dev #131

Answered by ElMassimo
notturingtested asked this question in Q&A
Oct 9, 2021 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

@notturingtested You should not visit the Vite dev server, in Vite Ruby projects it's only used to serve assets. Visit the Rails server instead.

A few things I noticed:

  • Your entrypoint is not mounting the Vue application, you do that in app/frontend/main.js, but it's not imported. Move the content to entrypoints/application.js or import ~/main from there.
  • The application.html.erb layout is still using the webpacker tags

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@ElMassimo
Comment options

@jitingcn
Comment options

@ElMassimo
Comment options

@notturingtested
Comment options

@ElMassimo
Comment options

Answer selected by ElMassimo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants