I am trying to use @esri/calcite-components-react with Vite + React.
I'v created some basic app with "npm create vite@latest" command , installed @esri/calcite-components-react and copied calcite components code from sample repo (https://github.com/Esri/calcite-components-examples/tree/master/react).
Everything is working as expected, but there are 100 error in console during the loading process like this:
Uncaught (in promise) TypeError: Failed to resolve module specifier '@esri/calcite-components/dist/components/calcite-accordion.js'
I'v created repo with my sample https://github.com/AlexanderRyzhov/vite-react-calcite
Steps to reproduce the problem:
1. clone the repo
2. run "npm install"
3. run "npm run dev"
Open http://localhost:5174/ in a browser and open devTools - there should be erros during loading.
Can anyone help me to fix this problem?