thingworx-field-work / ThingworxVSCodeProject

Develop thingworx models using a real IDE
MIT License
33 stars 17 forks source link

NUMBER instead of number #4

Closed TG-JC closed 4 years ago

TG-JC commented 4 years ago

In default MyThing.ts file, this line is faulty:

@persistent numberProperty!: number;

It has to be "NUMBER" instead of "number" for build to pass.

I saw a commit telling it should pass with lowercase, but it doesn't.

BogdanMihaiciuc commented 4 years ago

Thanks for the report; I will update the project to resolve this soon.

In the meantime, the fix should be to update to the latest version of the "bm-thing-transformer" dependency ("^0.9.0") and run npm install to grab it from npm.

BogdanMihaiciuc commented 4 years ago

Fixed in the template via bddd8acae01662305a6ab727624e353ae4b207c6.

TG-JC commented 4 years ago

I confirm the fix