Error: Unrecognized extension value in extension set ([object Object]). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.
Make sure your system is only loading one version of @codemirror/state ā you sometimes need to remove your package lock and install from scratch to get npm to set up a reasonable dependency tree.
thanks marijn, I tried following your method. But that doesnāt seem to be this problem. when i remove āautocompletion(self.myAutoComplete)ā Extension, EditorState.create works fine. or remove others Extension,
āautocompletion(self.myAutoComplete)ā Extension also works fine.
I donāt think that follows. If @codemirror/autocomplete is loading a different version of @codemirror/state than the rest of your system, you will see exactly this error.
@marijn terribly sorry. āautocompletion(self.myAutoComplete)ā extension faced with a new problem in the process of using. When entering characters in the editor,The automatic prompt panel does not respond, I guarantee that the input content exists in the options. The function is defined as follows: configuration comes from example: CodeMirror Autocompletion Exampleautocomplate
I have another questionļ¼Is there a conflict between the autocompletion configuration in basicSetupand the configuration of the custom extension twice? filtering out the autocompletion extension in basicSetup doesnāt seem to solve my problem either.
When you see this message, I hope to get your help, thank you very muchļ¼
Loading the autocompletion extension twice is no problem. I donāt know what might be going wrong with your completion. Do others, like the one you get with @codemirror/lang-javascript, work better for you?
thank you marijn, what you said is not what I want. CompletionConfig Object is what i need. it provides great scalability.
Iāve been struggling with the way Iāve configured it and ignored my code. As said, the code has logical errors. Thanks, itās working fine now.