Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

212
Views
IISNode seems not working in IIS

I am trying to host my Node.js in IIS. I have build an application in Angular2. Now, I was able to host the project and run it in IIS with IISnode installed.

Here is my web.config file.

<configuration>
    <system.webServer>
        <handlers>
            <add name="iisnode" path="src/app/app.component.ts" verb="*" modules="iisnode" />
        </handlers>
        <rewrite>
            <rules>
                <rule name="myapp">
                    <match url="(.*)" />
                    <action type="Rewrite" url="src/app/app.component.ts" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

This is the steps I followed in hosting NODE to IIS: https://www.upnxt.com/blog/deploying-node-on-iis

But when I run the application I got this error:

Application has thrown an uncaught exception and is terminated:
C:\src\Angular2\BuyPracticeTest_AV4\src\app\app.component.ts:2
import { Service } from './app.service';
^^^^^^
SyntaxError: Unexpected token import

it seems that import statement is not being recognized as a keyword. Or I really don't know.

I am new to this thing by the way.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!