You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i update my code and save it(in "pnpm dev" command in nextjs), the issue is that the editor don't get the custom language that i defined, and i should manually refresh the page 3 times(i guess it's the absolute correct number of refreshes that i'm making each time) to get my changes, here is my code:
when i update my code and save it(in "pnpm dev" command in nextjs), the issue is that the editor don't get the custom language that i defined, and i should manually refresh the page 3 times(i guess it's the absolute correct number of refreshes that i'm making each time) to get my changes, here is my code:
`export const TclEditor = () => {
const handleEditorDidMount = useCallback((editor: any, monaco: Monaco) => {
monaco.languages.register({ id: "tcl" });
monaco.languages.setMonarchTokensProvider(
"tcl",
tclLanguageDefinition as any
);
}, []);
return (
<Editor
height={"100%"}
width={"50%"}
defaultLanguage="tcl"
defaultValue=""
theme="test-theme"
onMount={handleEditorDidMount}
options={{
minimap: { enabled: false },
scrollBeyondLastLine: false,
fontSize: 14,
}}
/>
);
};`
and i'm using this dependencies:
"dependencies": { "@fortawesome/fontawesome-svg-core": "^6.6.0", "@fortawesome/free-regular-svg-icons": "^6.6.0", "@fortawesome/free-solid-svg-icons": "^6.6.0", "@fortawesome/react-fontawesome": "^0.2.2", "@monaco-editor/react": "^4.6.0", "@react-three/drei": "^9.115.0", "@react-three/fiber": "8.17.10", "@reduxjs/toolkit": "^2.3.0", "next": "14.2.7", "react": "18.3.1", "react-dom": "18.3.1", "react-redux": "^9.1.2", "three": "^0.169.0" }
The text was updated successfully, but these errors were encountered: