Comments (8)
I am having this exact same issue. On one server I am not having this issue at all but on another fresh install with the same code I am having this issue. The only thing I can think of is the new server has updated dependencies.
from dante.
I am having the same issue, i have node - v16.8.0 & npm 8.1.3
from dante.
I've released a new version 1.0.8 , try it in your codesandbox, it will work.
the tiptap versioning is really a mess.
reopen, or add a new issue if you still have the problem.
from dante.
You will need to check your dependencies; I could bet that could be that, and if you can provide an example to reproduce the error will help to figure it out.
Also you should download the repository and run the dev server to see if that works too.
thanks
from dante.
I'm having the same problem. It could be a dependency problem, but I can't figure out a solution/workaround. I can provide an example to reproduce the error, though.
Disclaimer: I am not a web dev, I'm just puzzling some pieces together for a personal project.
I am using npm 8.1.2.
So I am having the same issue that reproduces even with the simplest react app. I tried running dante-editor-3-tester
from https://codesandbox.io/s/hzi3l, as well, but I couldn't make it work; will explain what I tried. When I ran npm install
for it I got:
npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/typescript
npm ERR! dev typescript@"4.1.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional typescript@"^3.2.1" from [email protected]
npm ERR! node_modules/react-scripts
npm ERR! react-scripts@"4.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/typescript
npm ERR! peerOptional typescript@"^3.2.1" from [email protected]
npm ERR! node_modules/react-scripts
npm ERR! react-scripts@"4.0.0" 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!
npm ERR! See /home/iuliu/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/iuliu/.npm/_logs/2022-03-11T11_35_59_796Z-debug.log
Running npm install --force
does build it, but it still doesn't work when running npm start
.
When the app starts I get the following in console:
Uncaught TypeError: Cannot read properties of undefined (reading 'target')
at Object.addAttributes (link.ts:74:1)
at getAttributesFromExtensions.ts:85:1
at Array.forEach (<anonymous>)
at getAttributesFromExtensions (getAttributesFromExtensions.ts:67:1)
at getSchemaByResolvedExtensions (getSchemaByResolvedExtensions.ts:23:1)
at new ExtensionManager (ExtensionManager.ts:34:1)
at Editor.createExtensionManager (Editor.ts:241:1)
at new Editor (Editor.ts:81:1)
at Editor._createSuperInternal (createSuper.js:12:1)
at new Editor (Editor.ts:6:1)
at useEditor.ts:16:1
at invokePassiveEffectCreate (react-dom.development.js:23487:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:3945:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:3994:1)
at invokeGuardedCallback (react-dom.development.js:4056:1)
at flushPassiveEffectsImpl (react-dom.development.js:23574:1)
at unstable_runWithPriority (scheduler.development.js:468:1)
at runWithPriority$1 (react-dom.development.js:11276:1)
at flushPassiveEffects (react-dom.development.js:23447:1)
at react-dom.development.js:23324:1
at workLoop (scheduler.development.js:417:1)
at flushWork (scheduler.development.js:390:1)
at MessagePort.performWorkUntilDeadline (scheduler.development.js:157:1)
I have also tried with a standard npx create-react-app dante3-example-vanilla
project to which I just added <Dante content="initial content" />
. This is the simplest reproducible example, I believe. I have attached the dante3-example-vanilla
project as a zip to this message.
I would very much appreciate any hint or help in getting this working.
from dante.
hi @iuliuh the codesandbox that you send works for me, I tried it from codesandbox directly and it runs ok.
from dante.
Now this is intriguing! What are your node and npm versions? Mine are below.
$ node --version
v16.13.1
$ npm --version
8.1.2
Could it be that I am using Ubuntu 20.04? It can't be that, can it?...
Have you also tried dante3-example-vanilla.zip?
from dante.
@michelson
I believe I have managed to isolate the issue and replicate it in codesandbox: https://codesandbox.io/s/determined-dew-vj2iwi
What could be that I am unable to create a working example from scratch or on my local machine?
Is it possible to point us in the right direction for a better troubleshooting?
I can't figure out what is the dependency that is causing the issue.
Thank you very much!
from dante.
Related Issues (20)
- Typescript declarations missing for dante3 HOT 1
- How to multi-column? HOT 4
- how can i compile it to plain vanillaJS? HOT 1
- prosemirror-state package constructor issue HOT 2
- "Cannot load such file -- coffee_script" for Rails 7 HOT 1
- Cannot Start a New Line When Uploading Images & Image Gets Deleted When Pressed Enter [Video Included] HOT 2
- prosemirrorState Error HOT 37
- cannot build dante3 HOT 2
- running Dante locally with errors... HOT 1
- where can I find "Clear Format" ? HOT 3
- prosemirrorState.PluginKey is not a constructor HOT 7
- Dante3 not working with vite HOT 7
- RangeError: Adding different instances of a keyed plugin (plugin$) HOT 4
- Is that possible? Add JS dynamic charts. HOT 13
- How would I get the "raw" html for image block?
- TypeError: Cannot read properties of undefined (reading 'Extension') HOT 3
- How can I use Dante with JQuery?
- Dante 3 Nextjs page to Nextjs app HOT 9
- Dante3 doesn't work with Vite HOT 1
- Need help in fixing Dante-3 issues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dante.