Ionic2-MeteorCLI-WhatsApp
Ionic2-MeteorCLI-WhatsApp copied to clipboard
Errors in step 5
I'm getting the following error on step 5
server/imports/api/sms.ts (6, 26): Property '_options' does not exist on type 'typeof Accounts'.
server/imports/api/sms.ts (7, 3): Cannot find name 'SMS'.
Should we not have to import SMS from the mys:accounts-phone package into the sms.ts file? If I do
import {SMS} from "meteor/mys:accounts-phone"
I get a module not found error. Sorry if this is a basic question
I've added this line to tsconfig.json
(inside compilerOptions):
"types": [
...some lines skipped...
"@types/meteor-accounts-phone"
]
and it worked!
Same problem here. Adding the line to tsconfig.json didn't work