Closed JustFly1984 closed 3 years ago
Can you document the issue and PR the change?
created PR https://github.com/pmndrs/drei/pull/184
Issue was reproducing only in projects with esModuleInterop: false. Current fixed imports are working for both states of esModuleInterop in consumer projects, and compatible with react 17. read more: https://epicreact.dev/importing-react-through-the-ages/ Also fixed some rendering issues and improved performance.
Fixed in #198
Please disable
esModuleInterop
in tsconfig.json and replaceimport React from 'react'
withimport * as React from 'react'
in all components.