undefined is not a funtion(evaluating 'babelHelpers.typeof(global)')