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

Typescript error: Property after does not exist on type collection <Chat> and <User> #123

Open
ganySA opened this issue Aug 14, 2017 · 9 comments

Comments

@ganySA
Copy link

ganySA commented Aug 14, 2017

Hi

Not sure why but i am getting the following error (using lastest git clone on repo)

"Property after does not exist on type 'Collection'"

@alisaidss
Copy link

Hi I have the same problem, did you solve it?

@NicholasHattabaugh
Copy link

Hey i'm having the same problem and wondering if anyone has found a solution, The problem occurred for me after updating the ionic cli and meteor.

@NicholasHattabaugh
Copy link

Below are the error messages that i'm getting:

[23:25:34] typescript: api/server/collections/chats.ts, line: 9
Property 'remove' does not exist on type 'Collection'.

   L8:  Chats.collection.after.remove(function (userId, doc) {
   L9:    Messages.collection.remove({ chatId: doc._id });
  L10:  });

[23:25:34] typescript: api/server/collections/users.ts, line: 14
Property 'remove' does not exist on type 'Collection'.

  L14:    Pictures.collection.remove({ _id: doc.profile.pictureId });
  L15:  }, { fetchPrevious: true });

and here are the current versions of ionic i'm running:
Ionic Framework: 3.3.0
Ionic App Scripts: 1.3.7
Angular Core: 4.1.2
Angular Compiler CLI: 4.1.2
Node: 8.5.0
OS Platform: macOS Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36

@NicholasHattabaugh
Copy link

I've tried a complete re install of Sierra and completely re built the project and still get the same issue if anyone was able to figure out how to fix this I would greatly appreciate it.

@darkbasic
Copy link
Collaborator

darkbasic commented Sep 22, 2017

Please tell me if you can reproduce the issue after the following procedure:

Shell 1:
$ git clone https://github.com/Urigo/Ionic2CLI-Meteor-WhatsApp.git
$ cd Ionic2CLI-Meteor-WhatsApp/
$ npm install
$ npm uninstall sharp
$ cd api; meteor npm install sharp; cd ..
$ wget https://github.com/Urigo/Ionic2CLI-Meteor-WhatsApp/files/1324542/ionic2cli-enable_fake_users.patch.txt | patch -p1
$ npm run api

Shell 2:
$ npm run meteor-client:bundle
$ npm run ionic:serve

Shell 3 (Android testing, if needed):
$ cordova platform add android
$ cordova run android

If you still experience this issue please repeat the whole process with the following repository: https://github.com/darkbasic/Ionic2CLI-Meteor-WhatsApp.git

ionic2cli-enable_fake_users.patch.txt

@fchavarri-soltec
Copy link

I still getting the same error even with your git code darkbasic. I just comment the 'remove' code from chats.ts and users.ts
/chats.ts/
....
// Messages.collection.remove({ chatId: doc._id });
....

/users.ts/
...
// Pictures.collection.remove({ _id: this.previous.profile.pictureId
...

At least I had prompt from Login, but now I can't receive the SMS message, I testing this app from Peru with area code +51

Any comment will be appriciated
Thanks,

@darkbasic
Copy link
Collaborator

darkbasic commented Oct 12, 2017

Git code from my own branch is in flux right now, becuase I'm preparing for the next release of the tutorial, probably the last one before a complete overhaul.

I almost finished reviewing the whole tutorial and I didn't encounter the above mentioned problem.

@darkbasic
Copy link
Collaborator

Can you please tell me exactly how to replicate your issue? Thanks

@adiseshu876
Copy link

error TS2551: Property 'getDecimal' does not exist on type 'CalculatorComponent'. Did you mean 'getDecimai'?
explain...

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

6 participants