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
В текущей реализации, если позволить npm разрешать зависимости самостоятельно, некоторые библиотеки устанавливаются повторно в разных версиях (prosemirror-view, prosemirror-model).
Из-за этого редактор не работает, я получаю краш в точности как в этой ишью
Пожалуйста, обновите зависимости так, чтобы библиотеки устанавливались без дубликатов.
На данный момент временное решение для версии 14.8.0 это явно указать overrides в package.json
In the current implementation, if npm resolves dependencies automatically, some libraries are installed multiple times with different versions (prosemirror-view, prosemirror-model).
As a result, the editor doesn’t work, and I’m getting a crash exactly like in this issue.
Please update the dependencies to ensure the libraries are installed without duplicates.
For now, the temporary solution for version 14.8.0 is to explicitly specify overrides in package.json.
Я проанализировал код и зависимости — у нас prosemirror-model зафиксирован на ~1.23.0, а команда npm ls prosemirror-view не выявила проблем с дублированием.
Предположил, что проблема могла быть связана с использованием символа ^ в package-lock.json, из-за чего могла подтягиваться более высокая версия. Но судя по вашему примеру с overrides, здесь, наоборот, произошло понижение версии prosemirror-model.
Поэтому пока не до конца понимаю, при каких условиях возникла проблема. Чтобы её воспроизвести и исправить, нужны дополнительные детали.
Можете показать ваш package-lock.json, где это происходит? И зачем фиксировали ещё и prosemirror-view, если версия совпадает с нашей?
I analyzed the code and dependencies—our prosemirror-model is fixed at ~1.23.0, and the npm ls prosemirror-view command didn’t reveal any duplication issues.
I initially assumed the problem might be due to the ^ in package-lock.json, which could allow a higher minor version to be installed. However, based on your example with overrides, it seems that prosemirror-model was actually downgraded.
So, I’m not fully understanding the case where the issue occurred. To reproduce and fix it, I need more details.
Could you share your package-lock.json showing the issue? Also, why did you fix prosemirror-view as well, given that our version is the same?
makhnatkin
changed the title
Починить зависимости на prosemirror библиотеки
Fix dependencies for prosemirror libraries
Feb 6, 2025
В текущей реализации, если позволить npm разрешать зависимости самостоятельно, некоторые библиотеки устанавливаются повторно в разных версиях (prosemirror-view, prosemirror-model).
Из-за этого редактор не работает, я получаю краш в точности как в этой ишью
Пожалуйста, обновите зависимости так, чтобы библиотеки устанавливались без дубликатов.
На данный момент временное решение для версии 14.8.0 это явно указать overrides в package.json
In the current implementation, if npm resolves dependencies automatically, some libraries are installed multiple times with different versions (prosemirror-view, prosemirror-model).
As a result, the editor doesn’t work, and I’m getting a crash exactly like in this issue.
Please update the dependencies to ensure the libraries are installed without duplicates.
For now, the temporary solution for version 14.8.0 is to explicitly specify overrides in package.json.
The text was updated successfully, but these errors were encountered: