Posts

Showing posts from July, 2017

Angular - apollo-client/core/types.d.ts (17,45): ',' expected

Problem: Starting problems while using the apollo graphQL client:

$ npm install apollo-client apollo-angular graphql-tag --save

(...)

$ npm start

(...)

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (17,45): ',' expected.

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (17,47): '>' expected.

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (19,2): ';' expected.

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (19,4): Expression expected.

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (20,10): Expression expected.

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (20,5): Cannot find name 'data'.

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (20,12): Cannot find name 'T'.

ERROR in /(...)/node_modules/apollo-client/data/mutationResults.d.ts (8,48): ',' expected.

ERROR in /(...)/node_modules/apollo-client/data/mutationResults.d.ts (8,50): '>' expected.

ERROR in /(.…

Angular - UNMET PEER DEPENDENCY apollo-client@1.9.0-0

Problem: Adding apollo GraphQL client to a Angular 4 application:
$ npm install apollo-client apollo-angular graphql-tag --save

UNMET PEER DEPENDENCY apollo-client@1.9.0-0
Solution: Update npm version
$ npm install -g npm

XSL - Transformer configuration exception error checking type expression funcall replace

Problem:javax.xml.transform.TransformerConfigurationException: Error checking type of the expression 'funcall(replace,
Solution:Make sure to be using an updated xsl transalation engine like, for instance, saxon 9.

Maven dependency:

<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>9.8.0-3</version>
</dependency>


Usage example:


XMLToCSVStyle.xsl