How to implement React server Side rendering with Adonisjs #3772
Unanswered
declaudefrancois
asked this question in
Help
Replies: 1 comment 3 replies
-
Try using e.g. Also look into inertiaJS :) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone! I'm trying to implement a server side rendered application with react & AdonisJs but i'm getting errors when i try to do to so like i do with expressJS , i have look on the net and nothing found.\
Bellow my code
1- My Route definition for my react app.
2- The controller action
3- The view
4- React App
5- Index file of the react App
6- The error i get.
7- Then i add
"type" = "module"
in the package.json file and the Error become:TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension "" for /{PROJECT_DIR}/ace
I'm stuck since i've already done a lot of work with adonis JS a can't go back and use express JS. Does someone have any idea of how to to this ?
Beta Was this translation helpful? Give feedback.
All reactions