'vite Internal server error: Failed to resolve entry for package "@vue-leaflet/vue-leaflet"

I'm trying to install leaflet version, pointing to some commit.

package.json:

{
  "dependencies": {
    "vue": "^3.0.0",
    "@vue-leaflet/vue-leaflet": "https://github.com/vue-leaflet/vue-leaflet#6bda39424bcb90c06a704e19022bc3f70f895fd7",
  },
}

When I compiling with vite, I get the following error:

[vite:resolve] Failed to resolve entry for package "@vue-leaflet/vue-leaflet".
The package may have incorrect main/module/exports specified in its package.json:
Failed to resolve entry for package "@vue-leaflet/vue-leaflet".
The package may have incorrect main/module/exports specified in its package.json.

**



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source