-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
Dependency issues in Next.js 14+ #2240
Comments
Same here. Migrating to NextJS 14 in combination with |
@guidsen just a hotfix but I can solve this issue by using the fork of Haringat/domino This is the patch file |
Workaround: add
|
Remirror itself doesn't depend on For Remirror, one option is to migrate If you're seeing this issue and you're not using the markdown future from Remirror, a workaround would be uninstalling the // package.json
dependencies: {
- "remirror": "^2.0.39"
+ "@remirror/extension-heading": "^2.0.14"
+ "@remirror/extension-tables": "^2.4.1"
+ "@remirror/react": "^2.0.35"
} // editor.ts
- import { HeadingExtension, TableExtension } from 'remirror/extensions';
- import { Remirror, useRemirror } from 'remirror/react';
+ import { HeadingExtension } from '@remirror/extension-heading';
+ import { TableExtension } from '@remirror/extension-tables';
+ import { Remirror, useRemirror } from '@remirror/react'; By doing that, you can avoid |
Thanks for all the responses. I just upgraded to Next.js 14.1.4 and it seems like it's working fine even without the solutions mentioned here. |
The same thing happens to me. I followed your suggestion(#2240 (comment)) and migrated all dependencies of remirror extension, but the result was the same. Even remirror only installed react.
https://remirror.io/docs/showcase/markdown in Showcase documentation, we find the remirror markdown eidtor need MarkdownExtension. however, how to avoid I shared my solution. "resolutions": {
"domino": "git://github.com/Haringat/domino#2721294c75334ece635dfc72cad0a3dede7391fb",
"turndown": ">=7"
}, My tsup bundler was passed, I will test this issues in runtime on my project. |
Summary
I was using remirror 2 successfully with Nextjs 13. But when I upgrade it to Nextjs 14, I start getting these errors:
./node_modules/domino/lib/sloppy.js
With statement are not allowed in strict mode
I understand that this is an issue of
domino
npm package. This issue has been discussed on domino repo here and more specifically for Nextjs hereSteps to reproduce
Expected results
Maybe remove/replace this dependency as it seems to be an old/deprecated package (last publish 4 years ago)
Actual results
Possible Solution
Open to suggestions.
Screenshot(s)
N/A
The text was updated successfully, but these errors were encountered: