Looking for some guidance on class inheritance in TypeORM. Currently, I am trying to implement concrete table inheritance as outlined here: https://github.com/typeorm/typeorm/blob/master/docs/entity-inheritance.md#concrete-table-inheritance. However, I am encountering this error:
{ SyntaxError: .../src/entities/User.js: Unexpected
token (3:16)
1 | import { PrimaryGeneratedColumn, Column } from 'typeorm';
2 |
> 3 | export abstract class User {
| ^
4 | @PrimaryGeneratedColumn('uuid')
5 | id = undefined;
I suspect this is due to a misconfigured or incomplete babel setup. I loosely followed the guidelines mentioned here: https://github.com/typeorm/babel-example.
The error is triggered by this command:
$ ./node_modules/.bin/babel-node ./node_modules/.bin/typeorm schema:drop
(edited)