Express + TypeScript + Mongo – Part 4 – Swagger

You may also like...

2 Responses

  1. sandhya says:

    Thanks for your article.
    When I clone your github project it is showing

    import express from ‘express’;

    SyntaxError: Unexpected identifier

    Please can you help me how to resolve the issue.
    I have tried in all scenarios. But did not work.

    • Dan says:

      This is always a fun error to diagnose because it’s vague and can be caused by a few things.

      Let’s start with making sure you’re using Node 10.x or higher. For instance, I’m using Node 10.14.2, and I am not seeing this error. I also want to confirm that you did run ‘npm install’ after cloning.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.