-
Notifications
You must be signed in to change notification settings - Fork 4
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
Tests: Module not found: Error: Can't resolve 'meteor/meteor' #2
Comments
angular/angular-cli#8086 |
Having read angular/angular-cli#8086 I can see that the issue is about I suspect that the issue I reported may have a different cause. |
It looks to me that Karma is still using AngularCli to build the tests instead of the ejected and modified
configuration and as a result the tests cannot see the |
I'm not sure, but the Mongo error was definitely an oversight from my side. |
I'm getting the same error (though main.ts now has import 'meteor-client';)
|
I've resolved the build error by doing npm install meteor-client But now i'm getting:
|
Did you run |
Sorry no I hand't, ignore me! It works now! |
I'm running into the same error. Is there a solution or workaround, yet? Edit: I experience the error |
In an attempt to write a karma test in the
angularcli-meteor template
, I added a test case, which depends onMeteor
by importing'meteor/meteor'
in a class under test.Then, if I issue
$> npm run test
I get
Module not found: Error: Can't resolve 'meteor/meteor'
To easily reproduce the issue, modify
app.component.ts
by calling anything onMeteor
. E.g.and run
$> npm run test
The text was updated successfully, but these errors were encountered: