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 in editorpanel and zustand store #1

Open
AwaisCoder opened this issue Dec 24, 2024 · 3 comments
Open

error in editorpanel and zustand store #1

AwaisCoder opened this issue Dec 24, 2024 · 3 comments

Comments

@AwaisCoder
Copy link

here's the error
Screenshot 2024-12-24 133756

"Property 'getValue' does not exist on type 'typeof import("c:/VSCode Projects/snyppit/node_modules/monaco-editor/esm/vs/editor/editor.api")'.ts(2339)
any"

"Property 'setValue' does not exist on type 'typeof import("c:/VSCode Projects/snyppit/node_modules/monaco-editor/esm/vs/editor/editor.api")'.ts(2339)
any"

Screenshot 2024-12-24 134149
this is the error in editor panel

@SM-GIT-HUB
Copy link

just go on with the project, it will eventually be solved. at first, the Editor is set to null. that's why it's showing error. editor.setValue() sets the code value for the the editor. continue with the project and you'll see. just don't change anything. i had same issue.

@AwaisCoder
Copy link
Author

just go on with the project, it will eventually be solved. at first, the Editor is set to null. that's why it's showing error. editor.setValue() sets the code value for the the editor. continue with the project and you'll see. just don't change anything. i had same issue.

Actually i just cloned the repo and ran the project (im not a beginner tho, ive been doing web dev for a year). So the project is complete, and i even added some custom themes to it. how did it solve for you?

@SM-GIT-HUB
Copy link

the error you're getting, is most probably from eslint. that will be there, because by default, the editor is null. and it doesn't have a setvalue() method. the editor, which monacoeditor provides has method, which can be used once the editor mounts. so I guess there won't be any functional problem, just the eslint doing its thing.

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