Warning: Editor: Support for defaultProps will be removed from function components
Hi there!
Describe the bug
I am getting a warning using Monaco Editor:
Warning: Editor: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
at Editor (webpack-internal:///(sc_client)/./node_modules/@monaco-editor/react/lib/cjs/Editor/Editor.js:23:3)
at div
To Reproduce
Steps to reproduce the behavior:
- Use the latest React & NextJS versions
- Use the latest version of this package
- Observe that React is providing the warning for
defaultProps
Desktop (please complete the following information):
- OS: MacOS
- Browser Chrome
- Version: Version 108.0.5359.124 (Official Build) (x86_64)
Additional context Add any other context about the problem here.
@evanfrawley thanks for this report 🙌 I'll fix this in the next version
Awesome! Thank you for taking a look, and quadruple thank you for the awesome library!
@evanfrawley thanks for this report 🙌 I'll fix this in the next version
when the next version publish
Got the same error in Next.js 13
Still having the same issue here!!
Going to merge and release this PR; it will solve this issue
@GenaroIBC @SohelKabir @netSharks @evanfrawley may I ask you to check version 4.5.0-beta.0? It's fully rewritten with TypeScript 🔥 Thanks to @juliusmarminge 🙌
I released a beta version and would like to test it first, so I would appreciate it if you could find some time and test the beta version in your projects. Thanks 💚
@suren-atoyan I tested it and had no problems or warnings 🎉
This issue has been marked as stale due to inactivity. It will be closed in 7 days unless further activity occurs.
Closing due to inactivity. Feel free to reopen if needed.