Galooshi / atom-import-js

Atom plugin for ImportJS
MIT License
36 stars 3 forks source link

Uncaught Error: No project root found, looking for a directory with a package.json file. #50

Closed yaronro closed 4 years ago

yaronro commented 4 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.46.0 x64 Electron: 4.2.7 OS: Microsoft Windows 10 Pro Thrown From: atom-import-js package 1.0.0

Stack Trace

Uncaught Error: No project root found, looking for a directory with a package.json file.

At C:\Users\USER\.atom\packages\atom-import-js\node_modules\import-js\build\findProjectRoot.js:34

Error: No project root found, looking for a directory with a package.json file.
    at findRecursive (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:34:11)
    at findRecursive (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:45:10)
    at findRecursive (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:45:10)
    at findRecursive (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:45:10)
    at findRecursive (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:45:10)
    at findRecursive (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:45:10)
    at findRecursive (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:45:10)
    at findProjectRoot (/packages/atom-import-js/node_modules/import-js/build/findProjectRoot.js:57: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:155:38)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:11:349538)
    at CommandRegistry.dispatch (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:11:348013)
    at AtomEnvironment.dispatchContextMenuCommand (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:1:752337)
    at EventEmitter.t (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:1:760343)
    at EventEmitter.emit (events.js:182:13)

Commands

     -5:47.3.0 intentions:highlight (input.hidden-input)
     -5:47.2.0 core:save (input.hidden-input)
 27x -5:28.4.0 core:move-down (input.hidden-input)
 45x -5:25.9.0 core:move-up (input.hidden-input)
     -5:12.8.0 core:move-down (input.hidden-input)
 14x -5:12.4.0 core:move-up (input.hidden-input)
 35x -5:11.1.0 core:move-down (input.hidden-input)
     -5:07.7.0 intentions:highlight (input.hidden-input)
     -5:07.5.0 core:save (input.hidden-input)
     -4:57.7.0 tree-view:copy-full-path (li.file.entry.list-item.status-added.selected)
 28x -4:08.9.0 core:move-down (input.hidden-input)
 48x -3:58.4.0 core:move-up (input.hidden-input)
  3x -2:51.6.0 core:backspace (input.hidden-input)
     -2:47.4.0 intentions:highlight (input.hidden-input)
     -2:47.1.0 core:save (input.hidden-input)
     -0:08.6.0 import-js:fix-imports (span.syntax--source.syntax--js)

Non-Core Packages

atom-beautify 0.33.4 
atom-html-preview 0.2.6 
atom-import-js 1.0.0 
atom-js 1.2.0 
atom-js-console 1.2.2 
atom-ternjs 0.20.0 
autoclose-html 0.23.0 
busy-signal 2.0.1 
csslint 1.2.0 
emmet 2.4.3 
hyperclick 0.1.5 
intentions 1.1.5 
js-test-gen-atom 0.2.0 
language-ejs 0.4.0 
language-mozilla-test 1.2.0 
linter 2.3.1 
linter-eslint 8.5.5 
linter-jshint 3.1.19 
linter-ui-default 1.8.1 
pigments 0.40.2 
Sublime-Style-Column-Selection 1.7.5