Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

214
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda