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

devtool profiling fails with Uncaught Error #989

Closed
radiovisual opened this issue Aug 3, 2016 · 4 comments
Closed

devtool profiling fails with Uncaught Error #989

radiovisual opened this issue Aug 3, 2016 · 4 comments
Labels
bug current functionality does not work as desired help wanted scope:tooling

Comments

@radiovisual
Copy link

radiovisual commented Aug 3, 2016

Description

When following the profiling instructions in maintaining.md:

$ devtool node_modules/ava/profile.js test.js

I get an Uncaught Error (see below). If it helps, I ran the profiler against the AVA tests in https://github.com/sindresorhus/generator-nm

Error Message & Stack Trace

image

Here is the text from the screenshot above:

/usr/local/lib/node_modules/devtool/lib/require-hook.js:50 Uncaught Error: 
/Users/michael/forks/generator-nm/node_modules/ava/profile.js

/Users/michael/forks/generator-nm/node_modules/ava/lib/caching-precompiler.js

/Users/michael/forks/generator-nm/node_modules/ava/node_modules/convert-source-map/index.js
An error occurred while trying to read the map file at /Users/michael/forks/generator-nm/node_modules/ava/node_modules/convert-source-map/foo.js.map
Error: ENOENT: no such file or directory, open '/Users/michael/forks/generator-nm/node_modules/ava/node_modules/convert-source-map/foo.js.map'readFromFileMap @ /usr/local/lib/node_modules/devtool/node_modules/convert-source-map/index.js:32Converter @ /usr/local/lib/node_modules/devtool/node_modules/convert-source-map/index.js:39exports.fromMapFileComment @ /usr/local/lib/node_modules/devtool/node_modules/convert-source-map/index.js:112exports.fromMapFileSource @ /usr/local/lib/node_modules/devtool/node_modules/convert-source-map/index.js:131devtoolWrapModule @ /usr/local/lib/node_modules/devtool/lib/require-hook.js:75Module._compile @ module.js:509devtoolCompileModule @ /usr/local/lib/node_modules/devtool/lib/require-hook.js:32Module.load @ module.js:456tryModuleLoad @ module.js:415Module._load @ module.js:407Module.require @ module.js:466require @ internal/module.js:20(anonymous function) @ /Users/michael/forks/generator-nm/node_modules/ava/lib/caching-precompiler.js:4Module._compile @ module.js:541devtoolCompileModule @ /usr/local/lib/node_modules/devtool/lib/require-hook.js:32Module.load @ module.js:456tryModuleLoad @ module.js:415Module._load @ module.js:407Module.require @ module.js:466require @ internal/module.js:20(anonymous function) @ /Users/michael/forks/generator-nm/node_modules/ava/profile.js:15Module._compile @ module.js:541devtoolCompileModule @ /usr/local/lib/node_modules/devtool/lib/require-hook.js:32Module.load @ module.js:456tryModuleLoad @ module.js:415Module._load @ module.js:407Module.require @ module.js:466require @ internal/module.js:20(anonymous function) @ /usr/local/lib/node_modules/devtool/lib/preload.js:83emitOne @ events.js:96emit @ events.js:188

Environment

[email protected]
Node.js: v4.4.4
darwin: 14.5.0
AVA: 0.15.2
npm: 2.15.1

(This issue is related to the archived issue #798)

@novemberborn
Copy link
Member

Like #988, @avajs/core any ideas?

Is this something we should still include? Seems prone to breaking…

@sindresorhus
Copy link
Member

@novemberborn It can be useful, especially until we do #929. No idea why it's currently breaking though.

@sindresorhus sindresorhus added bug current functionality does not work as desired help wanted and removed question labels Oct 3, 2016
@sunny-g
Copy link

sunny-g commented Nov 1, 2016

Possibly related to this? Experience-Monks/devtool#74

@novemberborn
Copy link
Member

Could anybody confirm whether this is still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug current functionality does not work as desired help wanted scope:tooling
Projects
None yet
Development

No branches or pull requests

5 participants