hexaflexa-org / timegrid

HexaFlexa Timegrid issues
0 stars 0 forks source link

the react adapter may require vite 5.0.0 to work #3

Open abed7666 opened 3 weeks ago

abed7666 commented 3 weeks ago

Tried this in React

import { HfTimegrid, defineCustomElements } from "@hexaflexa/timegrid-react"

defineCustomElements()

function App() {
    return (
        <div>
            <HfTimegrid startDate={"2024-06-10"} />
        </div>
    )
}

export default App

Error :504 (Outdated Optimize Dep)


after updating vite from version 4.0.0 to 5.0.0 the error was gone
codluca commented 3 weeks ago

If using vite 4.0.0 is required, could exclude the timegrid component from optimizeDeps in vite.config.ts:

  optimizeDeps:{
    exclude: ['@hexaflexa/timegrid']
  },