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

Error loading extension: coc.nvim/lib/util not found #11

Closed
phcerdan opened this issue Feb 23, 2019 · 5 comments
Closed

Error loading extension: coc.nvim/lib/util not found #11

phcerdan opened this issue Feb 23, 2019 · 5 comments

Comments

@phcerdan
Copy link

phcerdan commented Feb 23, 2019

When entering neovim:

Error loading extension from /home/xxx/.config/coc/extensions/node_modules/coc-snippets/lib/index.js: Cannot find module 'coc.nvim/lib/util'

coc is installed with:

Plug 'neoclide/coc.nvim', {'tag': '*', 'do': 'yarn install'}

And:
:CocInstall coc-snippets

CocInfo:

## versions

vim version: NVIM v0.3.4
node version: v11.10.0
coc.nvim version: 0.0.56
term: tmux-256color
platform: linux

## Error messages

@iamcco
Copy link

iamcco commented Feb 23, 2019

same issue

@pgurung
Copy link

pgurung commented Feb 23, 2019

Same issue.
Log Message:

2019-02-23T11:47:22.048 ERROR (pid:60912) [util-factoroy] - Error: Cannot find module 'coc.nvim/lib/util'
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at Function.Module._resolveFilename (module.js:534:15)
    at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1280:46)
    at Function.Module._load (module.js:464:25)
    at Module.require (module.js:577:17)
    at Module.require (pkg/prelude/bootstrap.js:1159:31)
    at req (/snapshot/coc.nvim/lib/util/factory.js:46:21)
    at Object.<anonymous> (/Users/<username>/.config/coc/extensions/node_modules/coc-snippets/lib/index.js:14:16)
    at Module._compile (/snapshot/coc.nvim/lib/util/factory.js:67:32)
    at Object.Module._extensions..js (module.js:644:10)
    at Module.load (module.js:552:32)

@chemzqm
Copy link
Member

chemzqm commented Feb 23, 2019

Fixed, import issue.

@phcerdan
Copy link
Author

Thanks @chemzqm, it is fixed now!
However facing a new issue, following on at #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@chemzqm @phcerdan @iamcco @pgurung and others