-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
onDidChangeConfiguration is not a function error in both wrapper-react
and standard use.
#709
Comments
@kaisalmen As always, the issue is multiple package version installed
|
@CGNonofr there must/should occur peerDependeny warnings. I have to check that independently |
Did you check for multiple package version installed? |
i am also getting the same error, i have spent more than 5 hours trying to setup LSP into Monaco editor. Why there isn't any guide, I have tried looking the those examples, they are really confusing. There are no guide or tutorial or blogs posted recently, all of them are outdated. |
here is my package.json
|
Feel free to make one as soon as you manage to make it work ;) What is the result of |
sure, i will make a blog on it once i manage to set it up!! 😃 here is the log file btw of your command- |
You have both |
@CGNonofr so what do i do? 😄 |
@CGNonofr if you have a working code/repository with you, could you please share it with me 😄 |
There is a compatibility table Also you probably shouldn't use the next version since there is a more recent stable version |
okay, i am trying to make a new project add one by one from that table, and i will let you know |
@mxvsh basically do not mix different versions of the same dependency in one project. Have you successfully checked out this repo, build everything and used the examples? The README is quite detailed. Which information is missing / unclear. Enhancement PRs are appreciated. |
You're confusing |
I think it's |
btw @kaisalmen why is one namespaced and not the other? |
@CGNonofr |
I should have done the same with |
@CGNonofr i tried in a completely new project - but still getting that error. i checked with the table, it all matches with one row. here is the repository- |
here is the log btw |
A simple check to the pnpm-lock.yaml shows that you have both 8.0.4 and 9.0.3 versions of monaco-vscode-api |
@CGNonofr but i just created a new project - how come it installed two different versions? i am sorry - but can you tell me how to fix it 😢 |
by installing a dependency A directly, and having another dependency B that requires the dependency A with another version |
As the compatibility table states, [email protected] should not be used with v9 of monaco-vscode-api (and all other @CodinGame packages) also, you don't need |
btw @kaisalmen, having |
|
monaco editor should be installed as an alias to @codingame/monaco-editor-api instead Which should be the case because it's declared in the dependencies of monaco-editor-wrapper |
@mxvsh use
|
Thanks! That error is gone with the following dependency -
but I got another error - 😭
|
@mxvsh please share a repo with your example than we can have a look. |
@kaisalmen i shared before, i will share it again 😃 |
Sorry, I missed that. |
holy fucking shit both projects needs an AIO package desperately. I have wrote example Python code 1:1, WS connection is alive, all is fine on server, and I get the same error
problem is package json is taller than the berlin wall right now, I know there is a version that works (mxvsh s versions doesnt work for me), but looking at compat table and reinstalling all of these is really, really unintiutievevj (forgot the word). Thanks for this awesome project by the way. It is perfect for everything, and it is perfect when used like a level between monaco, like instead of connecting the lower level Monaco to the LSP and sending all commands by myself, I can just use monaco languageserver library. but I want the whole package like in Python example, and, holy hell, this is worrying me. edit: mxvsh s versions does not work with either bun, npm, pnpm, everything I throw at this thing refuses to work with same error last edit because it is 4 am in the morning, here is my latest dependency tree. I feel like no need for MRP, you can reproduce it in same way with the mxvsh's MRP. |
@mxvsh and @caner-cetin I was busy with other things and then away last week. I will provide feedback this week. |
I'm getting the same issue. |
I cant provide help or support, moved onto Ace Editor instead of Monaco and I cant remember what I did. best I can say is check versions of packages, at least package.json and vite config file in main example folder is helpful. |
Package mismatch seems to be a repeating problem. I have opened #789 to track this and hopefully find a more reliable solution for it. |
I'm receiving a very similar error to #686:
Same error occurs when using the
wrapper-react
as well as a more general approach:Turning off HMR and liveReload results in the same error.
It's possible that this error is related to the bundler I'm using (rsbuild/rspack), but I've been able to get regular Monaco Editor working mostly out of the box.
I've create a test repro repo. Should just be able to
npm install, npm run dev
to see the error.The text was updated successfully, but these errors were encountered: