Jdd-editor npm link error

I cloned jdd-editor and tried linking it with sealious-playground and got error


steps to reproduce:
1.clone sealious playground repository
2.inside playground directory
npm install
npx sealgen make-env docker-compose up -d db mailcatcher meilisearch
3.clone jdd-editor repository
npm install
npm link
4. in playground directory run
npm link @sealcode/jdd-editor
npm run watch

There is even more errors when also linking jdd package

What happened here is that now sealious is installed separately in jdd-editor and in sealious-playground. This is because when npm link-ed, modules have dependencies in separate node_modules directories and npm doesn’t automatically deduplicate them.

To work around this issue, you can npm link sealious into jdd-editor and sealious-playground. So try these steps:

  1. Clone the sealious repo
  2. In sealious, run npm run install; npm run build and npm link .
  3. in jdd-editor repository, run npm link sealious and npm link
  4. in playground repository, run npm link @sealcode/jdd-editor sealious (one command, two linked modules), and then npm run watch