Bug: Warning: Invalid hook call
on home page load
#23
Labels
↘️ low priority
This issue is nice to fix
🐛 bug
Something isn't working
🤲 help wanted
Extra attention is needed
When running the development server and loading the home page, there are instances where the below error occurs with the message displayed on the terminal:
It is important to state that this does not affect or stop the homepage from functioning as it should.
Context:
Project is using Astro with React.
Versions of related dependencies:
Running on Windows.
The error occurs on the home page at
src/pages/index.astro
, which includes two islands with React integration:recent-searches.jsx
andsearch.jsx
in thesrc/components/islands
directory.Steps to Reproduce:
npm run dev
.Expected Behavior:
The home page should load without any errors in the terminal.
Actual Behavior:
The "Invalid hook call" error occurs with the above stated message in the terminal.
Proposed Solution:
I got none for now 😆, Let's just Investigate and address the possible causes listed in the error message. Also, Ensure that React and its dependencies are correctly matched and that there is no duplication of React in the project.
The text was updated successfully, but these errors were encountered: