Skip to content

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

Open

Description

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.

Activity

  1. shriekdj commented on Feb 5, 2024

    @shriekdj
    Author

    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.

  2. shriekdj commented on Feb 5, 2024

    @shriekdj
    Author

    i can help in any contributions related to nodejs if needed

  3. konstantinblaesi commented on Mar 8, 2024

    @konstantinblaesi

    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

  4. konstantinblaesi commented on Mar 8, 2024

    @konstantinblaesi

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

  5. lextm commented on Jun 1, 2024

    @lextm

    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/

  6. elvisdt17 commented on Jun 1, 2024

    @elvisdt17

    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?

  7. lextm commented on Jun 2, 2024

    @lextm

    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.

  8. shriekdj commented on Jun 5, 2024

    @shriekdj
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions