I am new to typescript and now I am using CJS w / help from a browser. When I added typescript to the mix that the TSC compiler complains about, I have to say
error TS2095: Could not find symbol 'require'
This is my entry point for browerify
var Hello:any = require('hello.js').Hello;
here is my hello js file (required above)
var React = require('react'); var Hello = React.createClass({displayName: 'Hello', render: function() { return React.DOM.div(null, "Hello ", this.props.name); } }); exports.Hello = Hello;
source share