Akryum / floating-vue

💬 Easy tooltips, popovers, dropdown, menus... for Vue
https://floating-vue.starpad.dev/
MIT License
3.28k stars 335 forks source link

eslint cannot find module after v2.0.0-beta.20 to v2.0.0-beta.21 upgrade #974

Closed dten closed 4 months ago

dten commented 1 year ago

import FloatingVue from 'floating-vue'

started giving this error in a webpack based project with nothing weird going on for import resolution

error Unable to resolve path to module 'floating-vue' import/no-unresolved

weirdly it's just eslint that complains and the build itself is fine

dten commented 1 year ago

removing the "exports" section from the node_modules/floating-vue/package.json fixes it, sooo i guess something not happy there. obviously not something i can commit to our project though

dten commented 1 year ago

the difference between this and other package that do work is that they seem to include a "default" condition in their exports, adding that to the package fixes eslint for me.

https://github.com/Akryum/floating-vue/commit/a10ed16b279a2035601bfaeb2d1587cbb9769f53

dten commented 4 months ago

hey we're still unable to update past 2.0.0-beta.20 because of this

(actually i'm just gonna add an ignore in eslintrc but this still seems like something others would hit)

dten commented 4 months ago

I found someone who had fixed eslint 🥳 sorry to both you

https://github.com/cyco130/eslint-import-resolver-exports