You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Atom: 1.15.0 x64 Electron: 1.3.13 OS: Mac OS X 10.12.4 Thrown From: atom-import-js package 0.6.1
Stack Trace
Uncaught Error: No project root found
At /Users/davidmbrowning/.atom/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:20
Error: No project root found
at findRecursive (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:20:11)
at findRecursive (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:28:10)
at findRecursive (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:28:10)
at findRecursive (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:28:10)
at findRecursive (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:28:10)
at findProjectRoot (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:39:10)
at withModuleFinder (/packages/atom-import-js/lib/withModuleFinder.js:6:26)
at fixImports (/packages/atom-import-js/lib/import-js.js:120:3)
at /packages/atom-import-js/lib/import-js.js:152:38)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
at CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:3:59)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/app.asar/src/command-registry.js:160:19)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (/app.asar/src/atom-environment.js:1168:28)
at EventEmitter.outerCallback (/app.asar/src/application-delegate.js:325:25)
at emitThree (events.js:116:13)
at EventEmitter.emit (events.js:194:7)
Thanks for reporting your issue. Can you tell me a little about the file structure for the project you're trying to run import-js in? I'm asking because that error is thrown when import-js, based on the currently opened file, tries to find a "project root" - a place in the directory structure where there is a package.json and a node_modules folder. Here's the relevant code: https://github.com/Galooshi/import-js/blob/a4a284ba5ab710f5fa7eca5b9425214d2d3f813a/lib/findProjectRoot.js#L6
This error message is too vague and can be confusing for folks. We can
make it better by providing some more context.
More info: Galooshi/atom-import-js#13
[Enter steps to reproduce:]
Atom: 1.15.0 x64
Electron: 1.3.13
OS: Mac OS X 10.12.4
Thrown From: atom-import-js package 0.6.1
Stack Trace
Uncaught Error: No project root found
Commands
Non-Core Packages
The text was updated successfully, but these errors were encountered: