darkbasic / angularcli-meteor

13 stars 4 forks source link

Cannot find module 'meteor/accounts-base' #5

Open michaelb-01 opened 6 years ago

michaelb-01 commented 6 years ago

I don't think this is necessarily related to this repository but maybe its related to the meteor-client-bundler. I'm getting an error about accounts-base:

Cannot find module 'meteor/accounts-base'

I've added it to my project with meteor add accounts-base. The functionality works (I can add users) but I still get the error. Do you know how to fix this?

roeehershko commented 6 years ago

if the error you see is TS error (Like i had), simply remove ""types": []" from src/tsconfig.app.json and it should fix the problem, too me hours to investigate this one

darkbasic commented 6 years ago

Good catch @roeehershko, I'll fix it in next version

roeehershko commented 6 years ago

for what its worth, i made few more changes to make the karma works:

  1. removed "types" or just add "meteor" from the tsconfig.spec.js file to resolve this issue also in karma
  2. i had issue when karma didn't found "mongo" issue was the client-bundler wasn't TS file so from some reason karma didn't loaded it so i needed to add
    files: [
      'node_modules/meteor-client.js'
    ],

    to the karma.conf.js file that fixed it also in non-headless mode, you might have better solution for it but that fixed it for me

hongan126 commented 6 years ago

@roeehershko

simply remove ""types": []" from src/tsconfig.app.json

It work. Thank you @roeehershko