In case someone is interested in the outcome of this specific issue. For my dev environment I managed to resolve it through configuring vitejs appropriately (I think).
- install prosemirror-model, prosemirror-state, prosemirror-view and prosemirror-transform
- make the following change in vite.config.js
optimizeDeps: {
include: [
'prosemirror-state',
'prosemirror-transform',
'prosemirror-model',
'prosemirror-view'
]
}
The result of this are 4 separate chunks that will be loaded, which as a result makes the problem go away.