Compiler-Error on Data Model
See original GitHub issue[Details] Table-Decorator causes a compiler error at startup of the application.
[Stacktrace]
error: Uncaught TypeError: Cannot read property 'name' of undefined
var propertyTypeName = propertyType.name;
^
at Function.registerColumnDecorator (ormCoreDecoratorProxy.ts:30:45)
at entityDecorators.ts:30:31
at DecorateProperty (reflectMetadata.ts:1216:35)
at Reflect.decorate (reflectMetadata.ts:739:24)
at __decorate (file:///C:/Users/username/Documents/projects/private/SuperServer/src/main/mandarine/model/db/Bla.ts:3:92)
at Bla.ts:9:5
[Scenario] Added a data model class like described in the official documentation. Database-Table doen’t not exist. Model-Class:
import { Table, Id, GeneratedValue, Column } from "https://x.nest.land/MandarineTS@1.5.0/mod.ts";
@Table({ schema: "public" })
export class Bla {
@Id()
@GeneratedValue({strategy: "SEQUENCE"})
@Column()
private id: number;
}
[Expected behavior] No error, but a table called “bla” in the public schema.
[Screenshots] No screenshots…
[OS] Windows 10 Pro 1909
[Environment]
- Mandarine version: 1.5.0
- Mandarine CLI version 1.1.0
- Deno version 1.3.2
- Deno v8 version 8.6.334
- Deno typescript version 4.0.2
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Data Model Version Compiler (MOMC) Error - Stack Overflow
I just created new model with new name and copy all the entity from old model and paste in new model and deleted...
Read more >[Solved]-iOS CoreData: "Data Model Version Compiler" error
Coding example for the question iOS CoreData: "Data Model Version Compiler" error.
Read more >compiler error: Invalid data blob: 'cnn_net_1/conv-maxpool-5 ...
after i converted the tfmodel to mlmodel, when i run the predict program, the following errors appeared: coremlc: Error: compiler error: Invalid data...
Read more >Compiler error indicates a type is redefined. Simulink model ...
The model contains a custom S-Function block receiving sensor data connected to a controller and Arduino inputs. I am assuming the issue is...
Read more >Compiler error(s) encountered processing expression (Add ...
Hello guys, I'm trying to scrap some data (invoice number) from various invoices and to save them into the Excel file, however, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closed as this was reported to be fixed. Tagging “Needs Investigation” fur further references
Hi. Works fine on my local Windows machine and the Ubuntu server. Error is gone and table “bla” is created. Thanks a lot! 😃