You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.
Today I used patch-package to patch vue-match-heights@0.1.1 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
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
vue-match-heights@0.1.1
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 asdist/vue-match-heights.esm.js
. That's why I got the following error when running vite: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.
The text was updated successfully, but these errors were encountered: