You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to Deploy the Node JS app having nodejs version greater than 18.16.0 #141
I have currently implemented nodejs using the app router from Next.js, which is integrated within a custom server.js file written in Express.js. This setup is being hosted using iisnode. However, I've encountered stability issues when using iisnode with the app router; it only works reliably with Next.js versions up to 13.4.6, but not with later versions.
I am looking to upgrade to Next.js 14, but I'm facing challenges because it requires Node.js version 20 or higher. When I try to run it with these requirements, the above mentioned issue with iisnode arises.
I tried other frameworks also like express.js, nuxtjs , gatsby, angular projecty hall having issue of unable to run or identify the nodejs.
I Also Tried Reinstalling iisnode and nodejs in system, as well as changed the system also but it having the same issue.
only the nodejs app having nodejs version 18.16.0 below works and above versions not.
This SvelteKit stack works fine with latest LTS NodeJS so far, except I did not manage to get NodeJS crash / console logs so far. It is a bit surprising since I did not see these versions mentioned as supported anywhere so far
Elvis David Taveras (@elvisdt17) Literally all JS/TS frameworks can be configured to work with HttpPlatformHandler, but I won't have enough time to write about all of them.
You might follow the Next.js one and see what changes are required by AdonisJS. Often you just need to change a few commands.
Activity
shriekdj commentedon Feb 5, 2024
I tried other frameworks also like
express.js, nuxtjs , gatsby, angular projecty hall having issue of unable to run or identify the nodejs.I Also Tried Reinstalling iisnode and nodejs in system, as well as changed the system also but it having the same issue.
only the nodejs app having nodejs version
18.16.0below works and above versions not.shriekdj commentedon Feb 5, 2024
i can help in any contributions related to nodejs if needed
konstantinblaesi commentedon Mar 8, 2024
This SvelteKit stack works fine with latest LTS NodeJS so far, except I did not manage to get NodeJS crash / console logs so far. It is a bit surprising since I did not see these versions mentioned as supported anywhere so far
Windows Server 2019 with IIS
IISNode module
IIS rewrite module
NodeJS 20.11.1
SvelteKit 2
SvelteKit Adapter IIS
konstantinblaesi commentedon Mar 8, 2024
Logging issue solved by giving the user IIS_IUSRS full access to the logs directory, maybe it helps with NextJS.
lextm commentedon Jun 1, 2024
Next.js web apps (or other Node.js framework based) can be hosted on IIS via HttpPlatformHandler, https://docs.lextudio.com/blog/running-next-js-web-apps-on-iis-with-httpplatformhandler/
elvisdt17 commentedon Jun 1, 2024
Will this also work with an AdonisJS V6 App?
lextm commentedon Jun 2, 2024
Elvis David Taveras (@elvisdt17) Literally all JS/TS frameworks can be configured to work with HttpPlatformHandler, but I won't have enough time to write about all of them.
You might follow the Next.js one and see what changes are required by AdonisJS. Often you just need to change a few commands.
shriekdj commentedon Jun 5, 2024
Lex Li (@lextm) . I created the issue with this iisnode module but you gave me other module named httpplatformhandler module instead.
Thanks I will try that.