Cannot read properties of null (reading 'useState') #17986
-
Describe the bugHi, After some research, I came up with the vite.config.js as shown below. However, I'm still encountering an issue when importing it into the project. Any idea on this issue? Thank you
Library/Component
Project
Reproductionhttps://github.com/receter/my-component-library Steps to reproduceLibrary:
Project:
System InfoSystem:
OS: macOS 14.6.1
CPU: (8) arm64 Apple M2
Memory: 54.47 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 10.8.2 - ~/.nvm/versions/node/v20.13.1/bin/npm
Browsers:
Brave Browser: 128.1.69.153
Chrome: 128.0.6613.114
Edge: 128.0.2739.54
Safari: 17.6
npmPackages:
@vitejs/plugin-react: ^4.3.1 => 4.3.1
vite: ^5.4.2 => 5.4.2 Used Package Manageryarn LogsValidations
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I guess you need to set |
Beta Was this translation helpful? Give feedback.
-
it is related to The solution is to use Thankssss |
Beta Was this translation helpful? Give feedback.
it is related to
yarn link
, this issue facebook/react#14257The solution is to use
yarn pack
instead ofThankssss