Step-by-step tutorial for people that are new to frontend development? #80
Replies: 2 comments 4 replies
-
So after asking a friend, I found the problem.... When using Perhaps the gem should throw an error here instead when the relevant entrypoint is missing? |
Beta Was this translation helpful? Give feedback.
-
Hi Arne! This is documented in the tag added during installation, as well as in the example entrypoint, and is also covered in the docs. I don't mean to discourage you from asking questions though 😅 Getting started with frontend development—as well as learning new tools—can be a bumpy road. The docs might not be the best source when you are getting started—it's too condensed and it's easy to miss important information by skipping a paragraph or two. A tutorial for beginners would be a nice complement, but I haven't found the motivation to write one. Perhaps folks that find this thread can like this comment 👍, as a way to gauge if there's enough interest in a step by step tutorial. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I was wondering if someone can help me out getting this set up?
I'm not familiar with frontend development at all, and trying to understand how to configure Vite and VueJS for a private project to expand my knowledge about these frameworks.
I've followed the guide for the gem and added the relevant entries to my Gemfile:
So per the instructions of the gem, I've ran the following 2 commands:
And this seems to have created the required configuration files, added the comment entries for the CSP, and prepared the package.json to include all required dependencies.
When I fire up my Rails dev server locally, as well as the
bin/vite dev
command I can see both running just fine, so no errors are being generated.Opening the development tools in the browser, I can also see the
Vite Ruby
being mentioned.So at this point, I assume that the setup is done correctly.
In my
entrypoint/application.ts
I added the following line:console.log('test')
However this never seems to be outputted at all when reloading my page through the Rails server.
So what am I missing to make this work and finalize the setup?
Beta Was this translation helpful? Give feedback.
All reactions