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
But when I try to create totally new component's library that uses @chakra-ui/react ( basically my component's library will export this MyNewComponent component ) and use it inside Next.js application I'm getting this error
// components_library/main.ts of the component's libraryexport{Flex}from'@chakra-ui/react';// next_js_app/src/components/Component.ts file where I use components libraryimport{Flex}from'components-library';constMyNewComponent=()=>(<Flex>Wonderfulcomponent</Flex>)
Server Error TypeError: Cannot read properties of null (reading 'registered')
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Other components that used external libraries are working fine. The problem is only with @chakra-ui/react library.
Any ideas?
Basically, the error happens only when I bundle the @chakra-ui/react 🤔
This is vite.config.ts of my components library
Description
Hi!
I use
@chakra-ui/react
(v2.8.2) inside my Next.js App this way ( and this is working fine! ):But when I try to create totally new component's library that uses
@chakra-ui/react
( basically my component's library will export thisMyNewComponent
component ) and use it inside Next.js application I'm getting this errorServer Error
TypeError: Cannot read properties of null (reading 'registered')
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Other components that used external libraries are working fine. The problem is only with
@chakra-ui/react
library.Any ideas?
Basically, the error happens only when I bundle the
@chakra-ui/react
🤔This is vite.config.ts of my components library
This issue is similar I guess
JedWatson/react-select#5555
Link to Reproduction
not provided
Steps to reproduce
Chakra UI Version
2.8.2
Browser
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: