Skip to content
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

Unable to Deploy the Node JS app having nodejs version greater than 18.16.0 #141

Open
shriekdj opened this issue Feb 5, 2024 · 8 comments

Comments

@shriekdj
Copy link

shriekdj commented Feb 5, 2024

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.

@shriekdj
Copy link
Author

shriekdj commented 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.0 below works and above versions not.

@shriekdj
Copy link
Author

shriekdj commented Feb 5, 2024

i can help in any contributions related to nodejs if needed

@konstantinblaesi
Copy link

konstantinblaesi commented 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
Copy link

Logging issue solved by giving the user IIS_IUSRS full access to the logs directory, maybe it helps with NextJS.

@lextm
Copy link

lextm commented 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
Copy link

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/

Will this also work with an AdonisJS V6 App?

@lextm
Copy link

lextm commented Jun 2, 2024

@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
Copy link
Author

shriekdj commented Jun 5, 2024

@lextm . I created the issue with this iisnode module but you gave me other module named httpplatformhandler module instead.

Thanks I will try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants