PropTypes changed in React v15.5

If you get errors like

React.PropTypes.sting is undefined

its probably the case that you trying to use old pre v15.5 code with the latest release of React >= 15.5.

The React-Team was putting the PropTypes into its own package
so import like this DOESN’T work:

import React, { Component, PropTypes } from 'react';

Instead imports work like this:

import React, { Component } from 'react';
import PropTypes from 'prop-types';

In your code you replace

const Button = ({text})=>(

Button.propTypes = {
text: React.PropTypes.string


const Button = ({text})=>(

Button.propTypes = {
text: PropTypes.string.isRequired

Where does brew on MACOS install ansible?

Hm. Recently i changed my dev OS from Ubuntu to MACOS. I installed ansible with:

brew install ansible

When i tried running my playbook.yml this was the error:

ERROR: Unable to find an inventory file, specify one with -i ?

Default dir of hosts is /usr/local/etc/ansible/hosts but no dirs at all from the brew side ;-(
So just create the dir with

mkdir -p /usr/local/etc/ansible/

and create a host file

vi /usr/local/etc/ansible/hosts

with the content of your inventory. For example:

localhost ansible_connection=local