suren-atoyan / monaco-react

Monaco Editor for React - use the monaco-editor in any React application without needing to use webpack (or rollup/parcel/etc) configuration files / plugins
https://monaco-react.surenatoyan.com/
MIT License
3.74k stars 265 forks source link

In test , will throw "Maximum call stack size exceeded" error. i try to change version to resolve it ,but its no work #502

Open wdqCharles opened 1 year ago

wdqCharles commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce

  1. i cant reproduce in dev, this error only in test enviroment
  2. first time i click this page, and no refresh browser, this error wont throw
  3. if i refresh this page, this error will throw

Screenshots error

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

suren-atoyan commented 1 year ago

@wdqCharles please share a reproducible code snippet or a repository

wdqCharles commented 1 year ago

@wdqCharles please share a reproducible code snippet or a repository In test enviroment, i import this JSONEditor component, refresh page will throw error

export default function JSONEditor(props: Props) {
const { height, name } = props;
return (
<Form.Item name={name} wrapperCol={{ span: 20 }}>
<Editor defaultLanguage="json" className={styles.editor} height={height || 200} />
</Form.Item>
);
}
suren-atoyan commented 1 year ago

@wdqCharles this code snippet isn't reproducible? What Form.Item is? Could you please create a codesandbox or a repo?

wdqCharles commented 1 year ago

reproducible i can't reproduction in codesandbox. I guess still version problem or maybe my company test enviroment problem.