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

TypeError: import_coc2.RelativePattern is not a constructor #3

Closed
stfnwp opened this issue Apr 25, 2022 · 2 comments
Closed

TypeError: import_coc2.RelativePattern is not a constructor #3

stfnwp opened this issue Apr 25, 2022 · 2 comments

Comments

@stfnwp
Copy link

stfnwp commented Apr 25, 2022

After installing this extension, I get the following error after nvim startup:
(output of :CocInfo)

22-04-25T17:08:47.389 ERROR (pid:2806) [server] - unhandledRejection  Promise {                                                                                                                                                    
     <rejected> TypeError: import_coc2.RelativePattern is not a constructor
         at didOpenTextDocument (/home/stefan/.local/share/nvim/plugged/coc-tailwindcss3/lib/index.js:1036:64)
         at Array.forEach (<anonymous>)                                                                                                                                                                         
         at Object.activate (/home/stefan/.local/share/nvim/plugged/coc-tailwindcss3/lib/index.js:1042:39)
         at /home/stefan/.local/share/nvim/plugged/coc.nvim/build/index.js:231:1411                                                                                                                             
         at new Promise (<anonymous>)                                                                                                                                                                           
         at Object.activate (/home/stefan/.local/share/nvim/plugged/coc.nvim/build/index.js:231:1369)
         at i5.activate (/home/stefan/.local/share/nvim/plugged/coc.nvim/build/index.js:228:7366)
         at /home/stefan/.local/share/nvim/plugged/coc.nvim/build/index.js:230:283
         at new Promise (<anonymous>)
        at s (/home/stefan/.local/share/nvim/plugged/coc.nvim/build/index.js:230:45)
 } 

And the plugin is not usable for me :-(

@yaegassy
Copy link
Owner

I have never encountered that error. can you tell me what version of node.js you are using? Also, please update your coc.nvim to the latest version if possible.

@stfnwp
Copy link
Author

stfnwp commented Apr 25, 2022

Using the latest version of coc.nvim did the trick 👍
Sorry for the inconveniences, but I somehow mixed up :CocUpdate with :PlugUpdate 🙈

@stfnwp stfnwp closed this as completed Apr 25, 2022
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

2 participants