I'm trying to build a service to provide DB data to an Angular front end use nodejs and Nest. I get everything set up, but the moment I try to add an entity class, it crashes with the error:Syntax Error: Unexpected token {The { it isn't expecting is on line 1 of my .entity.ts file:import { Entity, Column, PrimaryGeneratedColum } from 'typeorm';^has anyone seen this before? Apologies if this is the wrong forum, but the nestjs forum has been made private for some reason.Edit: Should mention the issue here appears to be that tsc is not transpiling the .ts code and typeORM can't handle typescript. However, I'm following nest's documentation to the letter and it's still not working.
Submitted June 03, 2019 at 05:23PM by psychoclast
No comments:
Post a Comment