jaystack / odata-v4-parser

OData v4 parser
38 stars 41 forks source link

Getting build errors when try to use recent versions of odata-v4-parser #15

Closed TimWynsma closed 6 years ago

TimWynsma commented 6 years ago

I assume I have something configured incorrectly, but I don't see what it is. odata-v4-parser itself builds fine and the unit tests run fine. But when I try to build something that imports it--for example, odata-v4-inmemory--I get one or more errors.

node_modules/odata-v4-parser/lib/lexer.d.ts(192,56): error TS1110: Type expected.

The latest version of odata-v4-parser that I can successfully import into odata-v4-inmemory and build is 0.1.22.

Any advice would be appreciated. Thanks Tim

TimWynsma commented 6 years ago

Discovered the problem. odata-v4-inmemory was using a much order version of typescript than odata-v4-parser. When I updated the typescript version in package.json for odata-v4-inmemory, the problem went away.