-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I guess I understand now why inheritance dosn't works sometimes.
I made a test:
__message = require('./../../../shared/lib/public/Message.ts').Message;
__validatorMessage = require('./../../../shared/lib/public/ValidatorMessage.ts').ValidatorMessage;
First works, second fails because he inherit the Message class.
I got a
__validatorMessage = require('./../../../shared/lib/public/ValidatorMessage.ts').Validator
^
TypeError: Cannot read property 'ValidatorMessage' of null
If I remove inheritance (and comment inherited code compilation errors) it works.
Both files are compiled in AMD mode.
Now, if I compile both in CommonJS, that works perfectly (loading + execution)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels