-
Notifications
You must be signed in to change notification settings - Fork 94
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 'loc' of undefined #184
Comments
@Oloompa could you provide a minimal reproduction of this issue in the form of a repository? I use Could you also try running with the latest version of |
Please try removing |
@coreyfarrell thanks, you found the way to fix it. It works now ! |
I think this is still a valid bug, it shows that |
@j03m this is an odd one, first bug I've seen related to |
I finally removed .nycrc from all my projects but it's pretty easy to reproduce the bug. You need V7.0.0 of C8 and setup .nycrc file. I use typescript but as i transpile first (without tsnode) there is no impact. |
I will take a look at this asap. |
@Oloompa I was wondering if you could possibly tell me more about your project or provide a sample replication? I spent some time on this today setting up a project based on what I could ascertain about your set up. I made some guesses as to your tsconfig etc but so far I've had no luck with replication. I may just need your I will also attach the project I created. Running this with node and your nyc config works as expected for me. I'm going to try wiring up something with Ava now. |
My first replication attempts: c8-issue-184.zip |
Hmm added
|
@j03m In nyc 14 I saw this sort of issue when source-map mismatches occurred. An example of this for nyc is if you ran I'm unsure if/how this would apply to c8? In nyc the solution was to filter out known files from the |
Additional note, if you set |
@j03m Well i am confused. |
@Oloompa fascinating, I wonder if there was something odd in the |
@bcoe it's very strange and frustrating. Yes we should close it until someone reproduce it. |
I'm running into this issue too. I will try to provide a reproduction. |
Hello, updating C8 to V7 i get the following error (in place of report)
the command i run
npx c8 ava --fail-fast --verbose ./build/test/file.spec.js
I use the following .nycrc.json
The text was updated successfully, but these errors were encountered: