-
Notifications
You must be signed in to change notification settings - Fork 13
meteor 1.3 - unable to resolve modules warnings #19
Comments
This appears to just be warnings that have been generated by analyzing some of the (redundant) files in the package. Is this possible @benjamn? Does the package end up using |
No, many of these warnings are from files imported by the package. The problem is Browserify bundles like https://github.com/mochajs/mocha/blob/master/mocha.js have their own implementation of I understand that the warnings are annoying, but turning them off is not an option if it comes that the cost of withholding useful information about unmet dependencies. Perhaps you can import https://github.com/mochajs/mocha/blob/master/lib/mocha.js instead? |
@benjamn yes, we plan to, but we modified the mocha html reporter in the browserified version to be able to display 2 reportes in the same html page, so it will require a bit of work on our side - we want to create a pr into mocha itself with those changes, so meteor users can install whatever mocha version they want. So, basically, no plan to restore this? |
Checking Even if we fixed the warning level logic to work properly, I'm not convinced these warnings should be hidden by default, because that's almost as bad as not having any warnings at all. And turning them on by default is probably not what you want for Here's a good example of a time when the warnings were doing their job perfectly. I still think this is the more common case! |
This should be fixed if you do |
@benjamn What's a "free variable"? |
Hello guys, we just publish a new version of the package, the version is |
@trusktr within a given scope (such as a program, module, or function), a variable is "free" if it refers to a variable declared in some outer scope. In Node, (function (require) {
require("./foo");
})(...); then there's no way to be sure When is |
@tmeasday, I'm getting warnings that I didn't get with rc.1:
I think it has something to do with adding mocha as an npm dependency, which we didn't before - we used the browserified one for both client and server.
@jsep can you please check if that's the case?
Steps to reproduce: just update an app with mocha tests from 1.3-rc.1 to 1.3-rc.13 and run
meteor test --driver-package practicalmeteor:mocha
The text was updated successfully, but these errors were encountered: