Ionic2CLI-Meteor-WhatsApp icon indicating copy to clipboard operation
Ionic2CLI-Meteor-WhatsApp copied to clipboard

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

Open ganySA opened this issue 7 years ago • 9 comments

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<Chat>'"

ganySA avatar Aug 14 '17 11:08 ganySA

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

alisaidss avatar Aug 17 '17 07:08 alisaidss

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 avatar Sep 20 '17 23:09 NicholasHattabaugh

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<Message>'.

   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<Picture>'.

  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 avatar Sep 21 '17 03:09 NicholasHattabaugh

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.

NicholasHattabaugh avatar Sep 22 '17 04:09 NicholasHattabaugh

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

darkbasic avatar Sep 22 '17 12:09 darkbasic

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,

fchavarri-soltec avatar Oct 12 '17 16:10 fchavarri-soltec

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 avatar Oct 12 '17 17:10 darkbasic

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

darkbasic avatar Oct 31 '17 19:10 darkbasic

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

adiseshu876 avatar Nov 11 '22 08:11 adiseshu876