You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
There is a type conflict in the dependency library resize-observer-polyfill which causes masonic to fail at build with typescript 4.2.3 or above.
Discussion: que-etc/resize-observer-polyfill#83
Create new react app using the typescript templatenpx create-react-app my-app --template typescript
Install masonic
In App.tsx, import masonic
Run npm start
Expected behavior
React app should start at localhost:3000.
Additional context
Error message:
TypeScript error in /create-react-app/node_modules/resize-observer-polyfill/src/index.d.ts(19,18):
Subsequent property declarations must have the same type. Property 'contentRect' must be of type 'DOMRectReadOnly', but here has type 'DOMRectReadOnly'. TS2717
17 | interface ResizeObserverEntry {
18 | readonly target: Element;
> 19 | readonly contentRect: DOMRectReadOnly;
| ^
20 | }
21 |
22 | interface ResizeObserver {
The text was updated successfully, but these errors were encountered:
Describe the bug
There is a type conflict in the dependency library
resize-observer-polyfill
which causes masonic to fail at build with typescript 4.2.3 or above.Discussion: que-etc/resize-observer-polyfill#83
Since the
resize-observer-polyfill
is not actively maintained, I suggest switching to https://github.com/juggle/resize-observer. Hopefully this is a drop-in replacement for the old library.To Reproduce
Steps to reproduce the behavior:
npx create-react-app my-app --template typescript
masonic
App.tsx
, import masonicnpm start
Expected behavior
React app should start at localhost:3000.
Additional context
Error message:
The text was updated successfully, but these errors were encountered: