react-goodreads-shelf icon indicating copy to clipboard operation
react-goodreads-shelf copied to clipboard

Preact Compatibility

Open kylekarpack opened this issue 3 years ago • 0 comments

React Goodreads Shelf does not appear to work with Preact. Aliasing React for Preact in Webpack (for example https://dev.to/dephraiim/use-preact-in-nextjs-13-24pp) will allow the project to build, but will fail at runtime with an error (for example):

TypeError: Cannot read properties of undefined (reading 'current')
    at a (main-75a6ea19e3205d6a.js:2:1380)
    at a.H [as constructor] (main-75a6ea19e3205d6a.js:2:9884)
    at a.L [as render] (main-c3cba3cb4d050c05.js:1:124393)
    at G (main-c3cba3cb4d050c05.js:1:121884)
    at y (main-c3cba3cb4d050c05.js:1:118364)
    at I (main-c3cba3cb4d050c05.js:1:123589)
    at G (main-c3cba3cb4d050c05.js:1:122334)
    at y (main-c3cba3cb4d050c05.js:1:118364)
    at I (main-c3cba3cb4d050c05.js:1:123589)
    at G (main-c3cba3cb4d050c05.js:1:122334)

Preact support should be investigated.

kylekarpack avatar May 01 '23 01:05 kylekarpack