A Transactional Method Decorator for TypeORM that uses Async Local Storage or cls-hooked to handle and propagate transactions between different repositories and service methods.
MIT License
213
stars
28
forks
source link
SyntaxError: Cannot use import statement outside a module #32
The project starts and works, but when I run the migration I get the following error.
Also, I tried deleting the Post.entity.ts file from node modules and it works correctly but it's not quite correct to change.
How can I fix it?
**\node_modules\typeorm-transactional\tests\entities\Post.entity.ts:1
"import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm'; ^^^^^^
SyntaxError: Cannot use import statement outside a module