Akryum / Akryum/vue-mention

Compatibility with `floating-vue` version 5

Aperta
#101 2 commenti 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Vue
Stelle
556
Fork
58
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi,

`vue-mention` specifies `floating-vue@^2.0.0-beta.1` as a peer dependency, so when I try to install the latest version of `floating-vue`, `npm` returns the following error:

```text
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: my-project@0.0.0
npm error Found: floating-vue@5.2.2
npm error node_modules/floating-vue
npm error floating-vue@"^5.2.2" from the root project
npm error
npm error Could not resolve dependency:
npm error peer floating-vue@"^2.0.0-beta.1" from vue-mention@2.0.0-alpha.3
npm error node_modules/vue-mention
npm error vue-mention@"^2.0.0-alpha.3" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
```

I bypassed the dependency check using `--force` and noticed that `vue-mention@2.0.0-alpha.3` continues to work (a least on my project) with `floating-vue@5.2.2`.
However, I get the following error in Firefox's developer console:

```text
Uncaught (in promise) TypeError: currentRenderingInstance is null
renderSlot runtime-core.esm-bundler.js:2961
_sfc_render vue-mention.es.js:430
renderComponentRoot chunk-U3LI7FBV.js:8581
componentUpdateFn chunk-U3LI7FBV.js:7403
run chunk-U3LI7FBV.js:481
setupRenderEffect chunk-U3LI7FBV.js:7538
mountComponent chunk-U3LI7FBV.js:7313
processComponent chunk-U3LI7FBV.js:7266
patch chunk-U3LI7FBV.js:6782
mountChildren chunk-U3LI7FBV.js:7014
runtime-core.esm-bundler.js:2961:6
```

I'm using `vue@3.5.13` and `vite@6.3.4`.

> [!NOTE]
> I did not get any error in Chrome; I only got it in Firefox, and I didn't try any other browser.

Let me know if I can help you with this issue.

Best regards,
Benoit

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.