react-multi-date-picker
react-multi-date-picker copied to clipboard
Why do I need the jsxRuntime: "classic" option when I use it on vite?
React-multi-date-picker is being used in the vite environment. It can be used normally in localhost dev, but the "React is not defined" error occurs during production build. Adding the following options to the vite.config.js file will also run in production build, but I don't know why.
plugins: [
react({
jsxRuntime: "classic",
}),
]
How does jsxRuntime affect?
i have the same question.
Had this same issue after upgrading the package to latest, nothing in documentation regarding this.
same issue. Using it with a Shopify Nodejs App with Vite, Including jsxRuntime fixed the "React is not Defined" Error.