The built react-pannellum/dist folder is missing the ESM version which is defined in package.json:
"module": "dist/index.es.js",
Vite build breaks due to this.
[ERROR] [plugin vite:dep-scan] Failed to resolve entry for package "react-pannellum". The package may have incorrect main/module/exports specified in its package.json
Add index.es.js
or
Remove module and jsnext:main all together.
The built
react-pannellum/dist
folder is missing the ESM version which is defined inpackage.json
:Vite build breaks due to this.
Add
index.es.js
or Removemodule
andjsnext:main
all together.