Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ionic 2 #4

Open
hfwittmann opened this issue Dec 18, 2016 · 2 comments
Open

Ionic 2 #4

hfwittmann opened this issue Dec 18, 2016 · 2 comments

Comments

@hfwittmann
Copy link

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

@twilroad
Copy link

I have the same problem

@0nza1101
Copy link

0nza1101 commented Mar 2, 2017

Add declare var require: any; to src/typings.d.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants