When install the package using npm and add it to frontity.settings.js I am getting the following error:
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at getKeys (webpack-internal:///./node_modules/deepmerge/dist/umd.js:2:1009)
at mergeObject (webpack-internal:///./node_modules/deepmerge/dist/umd.js:2:1282)
at deepmerge (webpack-internal:///./node_modules/deepmerge/dist/umd.js:2:2056)
at eval (webpack-internal:///./node_modules/@frontity/core/src/utils/merge-packages.ts:8:484)
at Array.forEach (<anonymous>)
at __webpack_exports__.default (webpack-internal:///./node_modules/@frontity/core/src/utils/merge-packages.ts:8:226)
at __webpack_exports__.default (webpack-internal:///./node_modules/@frontity/core/src/server/store.ts:5:271)
at eval (webpack-internal:///./node_modules/@frontity/core/src/server/index.tsx:47:68)
at runMicrotasks (<anonymous>)
Hi @juanma, I revoked the public access again as I was not expecting any more contributes in here. But the main problem was that I was adding the modules in frontity.settings.js, but Iâve read that in another thread in the community that it works perfectly in the package.json inside the template-package as I did with the following imports:
Hi @phn, do you have a short example how you implement react-transition-group. I tried to use CSSTransition for rendering components, and it works, except for Post component, short example:
When the Post component is unmounted, i get a error:
âTypeError: Cannot read property âundefinedâ of undefinedâ for
const data = state.source.get(state.router.link);
const post = state.source[data.type][data.id]; <-- undefined
Someone have an idea to solve this problem? My plan is to make some complex animations using the enter / exit hooks with react transition group and use timelines with gsap library.
Hi @eugenregehr have you solved it yet? I am not sure which one anymore, but Iâve found a pretty good example in the showcases and I did replicate this.
Hi @phn, it looks good, I will test it at the next opportunity. For my project I realized that i had to write the animation logic by myself because the page transitions are more complex. But thank you for the example, maybe it will help someone else.