hoaiduyit / react-pannellum

46 stars 38 forks source link

Failed to resolve entry for package "react-pannellum". The package may have incorrect main/module/exports specified in its package.json #82

Closed wiltsu closed 2 years ago

wiltsu commented 2 years ago

Screenshot 2022-04-14 at 17 38 02

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.