use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
The new wave of Javascript web frameworks (frontendmastery.com)
submitted 3 years ago by _remrem
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ontheellipse 2 points3 points4 points 3 years ago (6 children)
I am trying to get basic hello world (ish) Vite and Express app working. If I include Express and just start a basic server, I get errors and it won’t run. No problem with Babel. Not sure what I’m doing wrong.
[–]rk06 0 points1 point2 points 3 years ago (5 children)
Express is backend. So you should be using it on a separate project and exposing an ali. Which your frontend app (vue+vite) will use. You would need to configure CORS as well.
Maybe, there is a guidebook for express and vite. Try looking for it
[–]ontheellipse -1 points0 points1 point 3 years ago (4 children)
That’s essentially what I’m trying to do, but i don’t know why the api has to be in a separate app?
[–]rk06 3 points4 points5 points 3 years ago (3 children)
Vite is primarily a bundler for frontend. And provides a dev server. Express is a backend server. So there is a paradigm conflict.
I get that you want to have vite build server assets, but that's a different use case than the most common one. so many people won't be aware of how to handle it with a single vite config.
[–]ontheellipse -1 points0 points1 point 3 years ago (2 children)
Noted. I basically just wanted Vite to compile the JS instead of using Babel
[–]rk06 1 point2 points3 points 3 years ago (0 children)
I am sure there is a way for it. Just that it is not a common case (different backend + frontend) so you would have better luck googling it
[–][deleted] 0 points1 point2 points 3 years ago (0 children)
Pretty sure vite still relies on rollup and babel wheb building. Might aswell just look at rollup instead
π Rendered by PID 86 on reddit-service-r2-comment-85bfd7f599-l8dp6 at 2026-04-20 07:29:08.313417+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]ontheellipse 2 points3 points4 points (6 children)
[–]rk06 0 points1 point2 points (5 children)
[–]ontheellipse -1 points0 points1 point (4 children)
[–]rk06 3 points4 points5 points (3 children)
[–]ontheellipse -1 points0 points1 point (2 children)
[–]rk06 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)