v2xnetwork / typescript-express-typeorm-boilerplate

A NodeJs boilerplate with Typescript, TypeORM, ExpressJs & Mocha.
MIT License
25 stars 10 forks source link

Node dist/index.js throws error about import statement #5

Closed kluplau closed 4 years ago

kluplau commented 4 years ago

Hi,

Sorry to bother you with this kinda old repo, but it really has potential! Great work.

Replicate

Error image

Looking at the error, it seems like TypeScript haven't transpiled the code, but if you look at the generated code, you see that there isn't any import statement at alle.

kluplau commented 4 years ago

The issue can be resolved with editing the typeorm config.

https://stackoverflow.com/questions/58148222/nodejs-problems-with-imports-when-transpiling-from-typescript/58177098#58177098

shumailxyz commented 4 years ago

Hi,

Unfortunately I am unable to maintain this repo due to lack of time. We have been mainly using NestJS for a while and quite happy with it.

Can you please create a PR with fix for this import error?