Skip to content
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

Error: Cannot find module './lib-cov/' from '<project_path>/node_modules/mongoskin' #169

Open
cantado opened this issue Jun 6, 2015 · 1 comment

Comments

@cantado
Copy link

cantado commented Jun 6, 2015

Hi.
i have a problem with mongoskin and browserify.
i want to run the browserify task and get the error

Error: Cannot find module './lib-cov/' from '<project_path>/node_modules/mongoskin'

why does mongoskin try to require ./lib-cov ? there is no such directory.

i use grunt. here is my browserify task:

browserify: {
  backend: {
    src: ['<%= backend.dist %>/js/**/*.js'],
    dest: '<%= backend.dist %>/main.js'
  }
}

i use these versions:

npm 1.3.10
MongoDB shell version: 2.4.9
mongod version v2.4.9
mongoskin 1.4.13
mongodb 1.4.38
grunt-browserify 3.8.0
@vkarpov15
Copy link
Contributor

mongoskin uses some old code-coverage tools that don't quite have as clean instrumentation as istanbul. Either way, mongoskin really doesn't support being included through browserify - there's not much mongoskin can really do on the browser given the current implementation of the underlying mongodb driver. What are you trying to do with mongoskin in the browser?

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

2 participants