Install on production and got ES Module error #4364
Answered
by
hieuhuynh93
hieuhuynh93
asked this question in
Help
-
I install the AdonisJS v6 on Plesk, after run
|
Beta Was this translation helpful? Give feedback.
Answered by
hieuhuynh93
Jan 28, 2024
Replies: 1 comment
-
I found the solution to install it on Plesk async function loadApp() {
await import('./build/bin/server.js');
}
loadApp(); Then in the "Application Startup File", replace to |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hieuhuynh93
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the solution to install it on Plesk
I created the file with name
loader.cjs
on root folder.Then in the "Application Startup File", replace to
loader.cjs
file.The project will work.