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

Cannot read property 'toString' of null #122

Open
vinaynb opened this issue May 2, 2017 · 2 comments
Open

Cannot read property 'toString' of null #122

vinaynb opened this issue May 2, 2017 · 2 comments

Comments

@vinaynb
Copy link

vinaynb commented May 2, 2017

I am using gulp istanbul in CI cycle to run automated unit tests code coverage. I am getting this error when running my tests inside a docker container. I am sure as this has something to do with my docker env as there is no error when i modify the dockerfile in certain way (removing a specific command) but i need to keep it that way and hence i need to understand what this error means. Hopefully the reason for this error will give me right pointers to debug my docker commands.
screenshot from 2017-05-02 11 08 03

The command in question is cp -R node_modules prod_node_modules

@ghost
Copy link

ghost commented Aug 28, 2017

@vinaynb Did you find the reason and solution for this error?

@cowwoc
Copy link

cowwoc commented Jan 24, 2023

In my case this was caused by the following code:

return gulp.src(["src/**/*.ts"], {read: false}).
  pipe(istanbul()).
  pipe(istanbul.hookRequire());

The key here is read: false which causes gulp to send istanbul a list of files, but leaves their contents as null. Removing read: false fixed the problem for me.

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