Hello,
I have had the typings “node” installed in Beta11 using the following CLi command:
typings install node --save --global --source dt
and the following code snipes works fine
@Injectable()
export class Decoder {
private static flatb = require('../../../node_modules/flatb/flatbuffers');
private static fbsj = require('../../../node_modules/fbsj/fbsj');
constructor(){};
…
after migration to RC0 by coping to a new project as per the instructions . errors occurred with the same code (see below)
0 546254 error Uncaught ReferenceError: require is not defined, http://localhost:8101/build/main.js, Line: 81113
0 546734 error Uncaught ReferenceError: require is not defined, http://localhost:8101/build/main.js, Line: 81113
0 546995 error Uncaught ReferenceError: require is not defined, http://localhost:8101/build/main.js, Line: 81113
please advise
thanks