Author Archives: Neil Rubens

About Neil Rubens

see http://ActiveIntelligence.org

No compatible version found: @types/react-dom@15.4.2

Solution Was puzzled by the No compatible version found: @types/react-dom@15.4.2 In the end chaning all of the react related vers to “^15.4.1”, did the trick also had an error (2nd one bellow); but that was due to a server already … Continue reading

Posted in Uncategorized | Leave a comment

React (TypeScript): infinite scroll

Recently I had to use an infinite scroll (lazy loading).  It took me a while to find a solution that worked well for my very simple case (lazy loading items in an infinite scroll fashion).  Hopefully this will save somebody … Continue reading

Posted in Uncategorized | Leave a comment

ReactJS: Uncaught TypeError: Cannot read property of undefined

Problem You get: Uncaught TypeError: Cannot read property of undefined This is due to react trying to render components that rely on variables that haven’t yet been set (quite a common occurence). Solution You can use conditional rendering shortcut to … Continue reading

Posted in Uncategorized | Leave a comment

VM54310:600 Uncaught TypeError: _XXXXX2.default is not a constructor

Problem VM54310:600 Uncaught TypeError: _XXXXX2.default is not a constructor Solution need to export default class e.g.: export default class StateController { …         keywords: typescript VM54310:600 Uncaught TypeError: _XXXXX2.default is not a constructor ts js webpack    

Posted in Uncategorized | Leave a comment

Gradual Migration from JavaScript to TypeScript

Task You have an existing project in which you’d like to use TypeScript. Solution Simply remove the outDir from tsconfig.json, e.g.: { “compilerOptions”: { “allowJs”: false, “outDir”: “./tsDist/”, “module”: “es6”, “target”: “es6”, “experimentalDecorators”: true, “moduleResolution”: “node” }, “exclude”: [ “node_modules”, “tsDist”, … Continue reading

Posted in Uncategorized | Leave a comment

enabling decorators for mobx

mobx is really great for state management (I prefer it over redux) it is even handier if you can use decorators; to do that its probably easier to use babel 6 (due to some of the issues described here). using npm … Continue reading

Posted in Uncategorized | Leave a comment

webpack issues

may need to run ‘sudo npm install’ first install missing dependencies with `sudo npm install <DEP>` “` Module parse failed: /home/neil/Dropbox/w540-bak/bitbucket/sa-client-ui/src/app.js Unexpected token (199:40) You may need an appropriate loader to handle this file type. SyntaxError: Unexpected token (199:40) “` … Continue reading

Posted in Uncategorized | Leave a comment

DynamoDB: An AttributeValue may not contain an empty string (Exception)

Problem com.amazonaws.AmazonServiceException: One or more parameter values were invalid: An AttributeValue may not contain an empty string (Service: AmazonDynamoDBv2; Solution This cryptic message basically says that dynamodb is not able to save fields with empty strings (or null) (a rather … Continue reading

Posted in Uncategorized | Leave a comment

org.codehaus.mojo:nbm-maven-plugin: Module has friend dependency on but is not listed as a friend

Problem [ERROR] Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:3.14:manifest (default-manifest) on project move: Module has friend dependency on org.netbeans.bootstrap but is not listed as a friend. -> [Help 1] Solution Add scope: provided; e.g.: <dependency> <groupId>org.netbeans.modules</groupId> <artifactId>org-netbeans-bootstrap</artifactId> <version>RELEASE81</version> <scope>provided</scope> </dependency>   keywords: … Continue reading

Posted in Uncategorized | Leave a comment

Upgrading Gephi 0.8 to 0.9

Gephi’s API had a rather significant API changes; here are some tips for the upgrades. This nifty repo can get you started quickly: https://github.com/gephi/gephi-plugins This repo provides good examples of API usage: https://github.com/gephi/gephi-toolkit-demos API Changes AttributeColumn subGraphFitnessCol = model.getNodeTable().getColumn(FLD_SUBGRAPH_FITNESS, AttributeType.DOUBLE); -> Column … Continue reading

Posted in Uncategorized | Leave a comment