karma-runner / karma-runner/karma

Unable to browserify JS file in karma

Open
#2,907 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

I not able to browserify js file that requires one scoped node module from node_modules dir:
The standalone browserify works for the same file.
I am using the latest version for browserify and karma-browserify

### Expected behaviour
Should be able to browserify without any issues
### Actual behaviour
Giving error:
```
Chrome 62.0.3202 (Mac OS X 10.13.1) ERROR
Uncaught TypeError: Cannot read property 'prototype' of undefined
at /var/folders/f7/pbrckg910w38p4z01llqvv9c0000gp/T/node_modules/graceful-fs/graceful-fs.js:166:0 <- /var/folders/f7/pbrckg910w38p4z01llqvv9c0000gp/T/c67c90f53865c8e01979581b7ded28a0.browserify:5262
13 12 2017 16:40:16.003:DEBUG [reporter.XXX]: START 'onBrowserComplete' function
13 12 2017 16:40:16.003:DEBUG [reporter.XXX]: END 'onBrowserComplete' function
```
### Environment Details

- Karma version (output of `karma --version`):
version: 1.7.1

- Relevant part of your `karma.config.js` file
frameworks: ['jasmine', 'XXX', 'browserify'],
browserify: {
debug: true
},
### Steps to reproduce the behaviour

1.
2.
3.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.