angular2-emoji
angular2-emoji copied to clipboard
Ionic 2
Hi,
I am trying to run this in ionic 2. However, I am not getting anywhere.
For instance if I start with (https://ionicframework.com/docs/v2/setup/tutorial/)
ionic start MyIonic2Project tutorial --v2 cd MyIonic2Project npm install npm install --save angular2-emoji
then follow your simplest example in "usage"
Then I try to run it, I get the complaint
typescript: node_modules/angular2-emoji/util/util.ts, line: 3 Cannot find name 'require'.
L3: let emojis = require('../db/emoji.json');
I tried npm install --save @types/node
But it does not help. But It wont run (timeout)
Cheers, Felix
I have the same problem
Add declare var require: any; to src/typings.d.ts