Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

181
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda