-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't compile/run rackt todo app example in README #5
Comments
I should clarify, I didn't do
|
The code examples at https://rackt-org.github.io/ obviously work. I'd like to see how that page itself was generated. |
Rackt (and React) is used to build SPAs (single page application), which are HTML pages with JavaScript running in the browsers. You don't need to use |
I took a look at the example repo and tried it locally, and it looks like it uses Vite.js as a development server and builder for the app. If you look in package.json's "scripts" section, you can see the commands that you can use to run/build the project here:
You can use these scripts by typing Hopefully this helps! *slight correction: vite will update the page live if you edit javascript/html files, but not rkt files, so if you want to edit the page locally you'll have to stop your development server, recompile app.rkt with the racketscript compiler, and then run one of the npm scripts again. |
I did
raco pkg install rackt
, but when I tried to runnode js-build/modules/todoapp.rkt.js
I gotBTW
"type" : "module"
was already in thepackage.json
.I thought maybe I was supposed to bring rackt's
main.rkt
in to the same dir astodoapp.rkt
and call itrackt.rkt
, but that generated a different node error:Seems like I'm dead in the water. Can't run the example in the README.
The text was updated successfully, but these errors were encountered: