t9md / atom-vim-mode-plus

vim-mode improved
https://atom.io/packages/vim-mode-plus
MIT License
1.4k stars 111 forks source link

Uncaught Error: Cannot find module './global-state' #1022

Closed chiehpower closed 6 years ago

chiehpower commented 6 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.23.3 x64 Electron: 1.6.15 OS: Unknown Windows version Thrown From: vim-mode-plus package 1.27.0

Stack Trace

Uncaught Error: Cannot find module './global-state'

At C:\Users\USER\AppData\Local\atom\app-1.23.3\resources\app\static\<embedded>:1

Error: Cannot find module './global-state'
    at Module._resolveFilename (module.js:470:15)
    at Module._resolveFilename (~/AppData/Local/atom/app-1.23.3/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (<embedded>:12240:58)
    at Module.require (/app.asar/static/index.js:40:43)
    at require (<embedded>:11585:33)
    at /packages/vim-mode-plus/lib/main.js:197:75)
    at VimState.forEach.vimState (/packages/vim-mode-plus/lib/main.js:58:49)
    at Map.forEach (native)
    at Function.forEach (/packages/vim-mode-plus/lib/vim-state.js:18:52)
    at subscriptions.atom.workspace.onDidStopChangingActivePaneItem.item (/packages/vim-mode-plus/lib/main.js:46:18)
    at Function.module.exports.Emitter.simpleDispatch (<embedded>:65955:20)
    at Emitter.module.exports.Emitter.emit (<embedded>:66071:34)
    at <embedded>:27988:30

Commands

Non-Core Packages

atom-clock 0.1.16 
emmet 2.4.3 
git-plus 7.10.0 
git-time-machine 1.5.9 
go-plus 5.7.2 
highlight-selected 0.13.1 
Hydrogen 2.2.2 
minimap-highlight-selected 4.6.1 
sync-settings 0.8.3 
terminal-plus 0.14.5 
vim-mode-plus 1.27.0 
wakatime 7.0.4 
t9md commented 6 years ago

I don't thinks I can do anything. I don't think this is problem of vim-mode-plus(maybe because of your environment which might be caused by Atom-core's problem). So what you can do is cleanup by uninstall/reinstall atom, check path, your environment variable etc...