Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dependencies for prosemirror libraries #543

Open
mordvinx opened this issue Dec 27, 2024 · 1 comment
Open

Fix dependencies for prosemirror libraries #543

mordvinx opened this issue Dec 27, 2024 · 1 comment

Comments

@mordvinx
Copy link

mordvinx commented Dec 27, 2024

В текущей реализации, если позволить npm разрешать зависимости самостоятельно, некоторые библиотеки устанавливаются повторно в разных версиях (prosemirror-view, prosemirror-model).

Из-за этого редактор не работает, я получаю краш в точности как в этой ишью

Пожалуйста, обновите зависимости так, чтобы библиотеки устанавливались без дубликатов.

На данный момент временное решение для версии 14.8.0 это явно указать overrides в package.json

"overrides": {
    "prosemirror-view": "1.34.3",
    "prosemirror-model": "1.21.0"
}

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.

"overrides": {
    "prosemirror-view": "1.34.3",
    "prosemirror-model": "1.21.0"
}
@d3m1d0v d3m1d0v mentioned this issue Jan 20, 2025
18 tasks
@makhnatkin
Copy link
Collaborator

@mordvinx

Я проанализировал код и зависимости — у нас 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 makhnatkin changed the title Починить зависимости на prosemirror библиотеки Fix dependencies for prosemirror libraries Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants