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
Currently working with a React project 17 and after adding the React-Timezone-Select package I've got a build error saying the following :
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\Daan\Desktop\Watcherr\hcp-dashboard\node_modules\react\jsx-runtime' imported from C:\Users\Daan\Desktop\Watcherr\hcp-dashboard\node_modules\react-timezone-select\dist\index.js
Did you mean to import "react/jsx-runtime.js"?
(I've added the jsx-runtime package aswell) The same error is happening aswell whenever I refresh the page where the React-timezone-selector is being used, only after a refresh, I can use the page without breaking it if I don't refresh the page.
Searched online for a long time but nothing seems to work.
Describe the bug
Currently working with a React project 17 and after adding the React-Timezone-Select package I've got a build error saying the following :
(I've added the jsx-runtime package aswell) The same error is happening aswell whenever I refresh the page where the React-timezone-selector is being used, only after a refresh, I can use the page without breaking it if I don't refresh the page.
Searched online for a long time but nothing seems to work.
Component I made using the TimezoneSelect :
and how I use it :
And If I click on second link of the error msg it brings me to the index of the node_module package of React-timezone-select to this line :
import { jsx } from "react/jsx-runtime";
Has anyone got an idea on how I could fix this?
Many thanks in advance.
Reproduction
install and use react-timezone-select
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: