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

How to install and setup for development? #11

Open
andyjamesn opened this issue Nov 22, 2024 · 1 comment
Open

How to install and setup for development? #11

andyjamesn opened this issue Nov 22, 2024 · 1 comment

Comments

@andyjamesn
Copy link

The instructions are to run

pnpm install

Start the Demo server

 npm run build:lib
 npm run dev

When I do this I get this error

Uncaught RangeError: Adding different instances of a keyed plugin (plugin$)
    at Array.forEach (<anonymous>)

It seems maybe 2 instances of ProseMirror are being added.

If I cd examples and then run

 npm run dev

It works fine, but I need to run npm run build:lib every time I make a change.

How do I set it up to run dev on the main src repo?

@Seedsa
Copy link
Owner

Seedsa commented Dec 12, 2024

import { } from 'echo-editor'
change to
import { } from '../src'

import { createApp } from 'vue'
import App from './App.vue'
import EchoEditor from '../src'
// import './style.css'
// import 'echo-editor/style.css'
const app = createApp(App)
app.use(EchoEditor)

app.mount('#app')

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