Error when trying to lift an ssr server #1640
Replies: 1 comment
-
Must be capitalized App setup({ App, props, plugin }) { |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I did all the step by step to run an ssr application, but without success.
config/inertia
resources/js/ssr.js
run the commands
node ace serve --watch
node ace ssr:watch
require() of ES Module C:\Users\Projeto\node_modules@inertiajs\vue3\dist\index.js from C:\Users\Projeto\inertia\ssr\ssr.js not supported. index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules. Instead rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in C:\Users\Projeto\node_modules@inertiajs\vue3\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
Beta Was this translation helpful? Give feedback.
All reactions