question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An error occurred while trying to read the map file

See original GitHub issue

Issuehunt badges

Reproduction

test/crash.js

const ava = require('ava')

test('anything', t => {
  `//# sourceMappingURL=a.js.map`
})

Bash

> ava test/crash.js

1. Uncaught Exception
   Error: An error occurred while trying to read the map file at /path/to/test/a.js.map`
Error: ENOENT: no such file or directory, open 'path/to/test/test/a.js.map`'

Environment

  • Node.js v6.3.0
  • darwin 15.5.0
  • ava 0.15.2
  • npm 3.10.3

There is a $30.00 open bounty on this issue. Add more on Issuehunt.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
novemberborncommented, Jul 31, 2019

That’s great news @havenchyk. Thank you for confirming.

0reactions
havenchykcommented, Jul 31, 2019

@novemberborn I got the next result

> ava test.js



  1 test failed

  anything


  Error: Test finished without running any assertions

npm ERR! Test failed.  See above for more details.

seems can be closed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intermittent errors from code coverage mapping ...
Intermittent errors from code coverage mapping (Transformation error, An error occurred while trying to read the map file, ENAMETOOLONG) # ...
Read more >
Resolve error "An error occurred while importing the map ...
This article explains how to resolve error "An error occurred while importing the map file, possibly due to missing labels for the geoset...
Read more >
Map execution error and warning messages
A problem was encountered attempting to write to an output database. Read the database trace file (.dbl) for information about possible causes.
Read more >
node - how to use source-map with nyc and mocha
1 Answer 1 · Well I'm trying to use in their example of $ mocha --require source-map-support/register tests/ , except that's pretty pointless ......
Read more >
Build failes if map file should be generated - MSDN - Microsoft
What I'm seeing is that, when the map file doesn't exist, the link fails with that exact error message, and a zero-byte map...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found