Ionic2CLI-Meteor-WhatsApp
Ionic2CLI-Meteor-WhatsApp copied to clipboard
Typescript error: Property after does not exist on type collection <Chat> and <User>
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>'"
Hi I have the same problem, did you solve it?
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.
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
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.
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
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,
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.
Can you please tell me exactly how to replicate your issue? Thanks
error TS2551: Property 'getDecimal' does not exist on type 'CalculatorComponent'. Did you mean 'getDecimai'? explain...