vue-match-heights icon indicating copy to clipboard operation
vue-match-heights copied to clipboard

Wrong filename in package.json module field.

Open NicolasReibnitz opened this issue 2 years ago • 0 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Unfortunately, the ES module file is called dist/vue-match-heights.min.js in the npm package but referenced in package.json as dist/vue-match-heights.esm.js. That's why I got the following error when running vite:

[vite] Internal server error: Failed to resolve entry for package "vue-match-heights". The package may have incorrect main/module/exports specified in its package.json.

Renaming the file to .esm.js fixed it.

Here is the diff that solved my problem:

diff --git a/node_modules/vue-match-heights/dist/vue-match-heights.min.js b/node_modules/vue-match-heights/dist/vue-match-heights.esm.js
similarity index 100%
rename from node_modules/vue-match-heights/dist/vue-match-heights.min.js
rename to node_modules/vue-match-heights/dist/vue-match-heights.esm.js

This issue body was partially generated by patch-package.

NicolasReibnitz avatar Aug 28 '21 01:08 NicolasReibnitz