Ionic2-MeteorCLI-WhatsApp icon indicating copy to clipboard operation
Ionic2-MeteorCLI-WhatsApp copied to clipboard

Errors in step 5

Open paixaop opened this issue 8 years ago • 2 comments

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

paixaop avatar Dec 21 '16 04:12 paixaop

I've added this line to tsconfig.json (inside compilerOptions):

"types": [
      ...some lines skipped...
      "@types/meteor-accounts-phone"
    ]

and it worked!

adrprado avatar Mar 20 '17 05:03 adrprado

Same problem here. Adding the line to tsconfig.json didn't work

rosunad avatar Feb 07 '18 17:02 rosunad