-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
SSR Error #117
Comments
I have the same problem with vue3 Could anyone help?
|
It worked using the code below. webpack.ssr.config.js // config.externals = [require('webpack-node-externals')()] config.externals = [ |
doesn't work in build versionm you can add this in config/intertia.ts for allowlist property |
I am also having the same problem. @decoderid solution did not worked for me...
I can't make work Adonis + React + SSR + Inertia. One difference from my configuration to the above is that I can't use require() within .jsx. I am having to use import() instead. Otherwise I got an error before this one. |
Hi everyone, I found the solution to my problem and I'd like to share it with everyone. First of all, @eidellev, Thank you very much for your hard work! I don't know if it was 'designed' this way or not but I think we need to install @inertiajs/core when we execute I think the problem we are experiencing when we are trying to use SSR with adonis is because it is missing Here goes a small tutorial on how to set up adonis project from the begining for React:
Don't forget to select web and yes to 'Configure webpack encore for compiling frontend assets?'
Some people complained that you needed to load
but for me, both ways worked.
Terminal 1:
Terminal 2:
And that's all folks. I hope I did not miss anything. |
Thanks for sharing, it works very well with JavaScript. However, as soon as I try to use TypeScript, adding |
Hello Everyone, I hope you are all doing well. Hope it helps |
Thanks, your project helped me a lot, the main difference for me was using:
Used UpdateIf you want to use react-jsx
|
INTRO
I want to use SSR but an error occurs as follows, if not using the SSR application it runs normally
ERROR
ERROR REFERENCE IN node_modules
ssr.jsx
app.jsx
webpack.config.js
webpack.ssr.config.js
The text was updated successfully, but these errors were encountered: