pablo-abc / svelte-editorjs

Use EditorJS as a Svelte action
MIT License
27 stars 11 forks source link

Cannot resolve dependencies #3

Open deshartman opened 1 year ago

deshartman commented 1 year ago

Hi, I tried this lib with Sveltekit and hit this issue:

npm i  svelte-editorjs
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: test-01@0.0.1
npm ERR! Found: svelte@3.55.0
npm ERR! node_modules/svelte
npm ERR!   dev svelte@"^3.55.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer svelte@"3.31.0" from svelte-editorjs@0.1.0
npm ERR! node_modules/svelte-editorjs
npm ERR!   dev svelte-editorjs@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 

This is just a stock Sveltkit project with npm create svelte@next test-01

Looks like the Svelte version is very old. Just confirming it does not work with Kit?

tgorman31 commented 1 year ago

Also running into the same issue @deshartman did you find a solution?

TuzSeRik commented 1 year ago

@tgorman31 @deshartman JFYI As far as I see, the package is pretty abandoned. I tried to use Editor.js with Svelte&&Kit natively, however, stumbled upon issue with the rendering of data.

ddy-ddy commented 1 year ago

@TuzSeRik Does it work now? I am using Editor.js with Sveltekit too. It's confused me a long time.

TuzSeRik commented 1 year ago

@TuzSeRik Does it work now? I am using Editor.js with Sveltekit too. It's confused me a long time.

Do you encounter the same problem? I got an answer, as you can see in an issue. However, it doesn't help me. Maybe something is wrong with my architecture, but I do not know, though I didn't test the suggested solution diligently. In the end, I decided to switch to another text editor.

ddy-ddy commented 1 year ago

@TuzSeRik Yes. At last, I didn't use it because of it's pretty abandoned.

vexkiddy commented 3 months ago

do you have a recomendation for a good editor that works well with sveltekit ?