Material UI's Menu component throws error when using npm run dev, though error does not occur on a production build, deployed here.
sorry I tried to do a codesandbox but got a vnode error, not sure what that is.
Failed prop type: The following props are not supported: `ref`. Please remove them.
In fairness, it does not seem to break any functionality, so this is not a high priority issue at all.
npm i; npm run dev
no error
error
Spent a while debugging this and these are the clues so far:
<Menu>-ComponentforwardRef which wraps a function, which renders a Portalref if _forwarded is present on the component constructornode_modules but it is removed in the dev bundle :thinking: Ah I got it! Turns out that this was a recent issue, which was fixed with #2685 . And here is the original issue #2682 .
Updating to the latest version of Preact (10.4.8) resolves this issue :tada:
gah, thanks for investigating! Sorted.
Most helpful comment
gah, thanks for investigating! Sorted.