rsamec / business-rules-engine

Business rules engine
Other
92 stars 15 forks source link

TS errors: Can't get the project to build, test or grunt typings to work. #5

Open aripalo opened 8 years ago

aripalo commented 8 years ago

… but this PR is slightly incomplete as it doesn't have tests. This is because I can not get the project to build / test / install typings.

I get only awful lot of Typescript related errors, like these when running grunt typings:

>> error TS1005: ',' expected.
>> /Users/me/projects/business-rules-engine/typings/underscore/underscore.d.ts(6033,42):
>> error TS1005: ';' expected.
>> /Users/me/projects/business-rules-engine/typings/underscore/underscore.d.ts(6033,53):
>> error TS1003: Identifier expected.
>> /Users/me/projects/business-rules-engine/typings/underscore/underscore.d.ts(6042,14):
>> error TS1005: ',' expected.
>> /Users/me/projects/business-rules-engine/typings/underscore/underscore.d.ts(6042,32):
>> error TS1005: ',' expected.
>> /Users/me/projects/business-rules-engine/typings/underscore/underscore.d.ts(6042,42):

Can it be related to this issue https://github.com/DefinitelyTyped/DefinitelyTyped/issues/4004 ?

aripalo commented 8 years ago

… and these errors are not just related to underscore, I get those errors from moment.

And also I see these:

>> /Users/me/projects/business-rules-engine/src/customValidators/DateCompareValidator.ts(2,1):
>> error TS5007: Cannot resolve referenced file: '../../typings/business-rules-engine/business-rules-engine.d.ts'.
>> /Users/me/projects/business-rules-engine/src/customValidators/ParamValidator.ts(3,1):
>> error TS5007: Cannot resolve referenced file: '../../typings/business-rules-engine/business-rules-engine.d.ts'.
>> /Users/me/projects/business-rules-engine/src/customValidators/RCValidator.ts(3,1):
>> error TS5007: Cannot resolve referenced file: '../../typings/business-rules-engine/business-rules-engine.d.ts'.
>> /Users/me/projects/business-rules-engine/src/validation/BasicValidators.ts(4,1):
>> error TS5007: Cannot resolve referenced file: '../../typings/business-rules-engine/Validation.d.ts'.
>> /Users/me/projects/business-rules-engine/src/validation/FormSchema.ts(4,1):
>> error TS5007: Cannot resolve referenced file: '../../typings/business-rules-engine/Validation.d.ts'.