question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
andreespirelacommented, Aug 31, 2020

Closed as this was reported to be fixed. Tagging “Needs Investigation” fur further references

0reactions
andreas-barthelcommented, Aug 31, 2020

Hi. Works fine on my local Windows machine and the Ubuntu server. Error is gone and table “bla” is created. Thanks a lot! 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found