Skip to content

Circular Dependency in NetworkAdapter #516

@tylerchilds

Description

@tylerchilds

Hey there--

I'm following the instructions on:

https://automerge.org/docs/cookbook/rich-text-prosemirror-vanilla/

I see:

We do need a bundler in order to use Automerge, so we’ll assume you have set up something like Vite and that you have two files, index.html and main.js.

However, I am interested in using automerge entirely in the browser without a bundler/compiler.

I've put the code from that page onto

https://plan98.org/app/hello-automerge

I use html import maps-- for now, I'm resolving through https://esm.sh/@automerge/automerge-repo

The error in the console in the hello-automerge app is:

SyntaxError: The requested module 'https://esm.sh/@automerge/automerge-repo@2.4.0/es2022/slim.mjs' contains circular import: 'NetworkAdapter'

I think if that NetworkAdapter error is resolved upstream, the bundler dependency may go away and the hello-automerge app will then work as expected, from the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions