Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
michaelb-01 opened this issue Dec 10, 2017 · 4 comments
Open

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

michaelb-01 opened this issue Dec 10, 2017 · 4 comments

Comments

@michaelb-01
Copy link

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
Copy link

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
Copy link
Owner

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

@roeehershko
Copy link

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
Copy link

@roeehershko

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

It work. Thank you @roeehershko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants