Closed johnantony92 closed 2 years ago
Please see the pinned issue for the cause and how to fix. https://github.com/sibiraj-s/ngx-editor/issues/406.
This happened due to the dependencies of ngx-editor introduced breaking changes in a non major version.
Since this is a very old version I won't be able to fix them. A a short fix. download the package from npm. Remove the caret semver
from all the dependencies and use that by using local installation.
@sibiraj-s Cant update the package to 13 since i got other dependencies .Also tried downloading the package and removing caret and publishing my private server but renaming the package is giving me this issue
Can you help on this?otherwise i would have to go for major changes.Can we have a patch release for older package?
when you say download package from npm, which package you referring too? I'm using yarn in place of npm. and ngx-editior version is 8.1.1
@sibiraj-s Cant update the package to 13 since i got other dependencies .Also tried downloading the package and removing caret and publishing my private server but renaming the package is giving me this issue
Can you help on this?otherwise i would have to go for major changes.Can we have a patch release for older package?
ngx-editior V13 requires angular 13. Need any solution or workaround for angular 11
You don't need to publish to private server. Just zip the changes and specify the path in the dependency under the same name
ngx-editor: file://path-to-zip
You can get the tar like this
npm view ngx-editor@8 dist.tarball
It will give you the url for the tar. you can download.
@sibiraj-s Understood .so you meant to create a .tgz from the local build and mentioned that in the pacakge.json depencies right?
@sibiraj-s Or you are saying i would have to bundle .tgz file with the project?Is there something that i can do publish in the private server as bundling the tar with project wont be better idea .Each time during the publish using ci/cd it tries to install the dependencies so giving a local path wont work
Yeah, bundling with project is the shortest one. To publish under different name, it would require many changes, because of internal dependencies
Understood .so you meant to create a .tgz from the local build and mentioned that in the pacakge.json depencies right?
download the build. -> extract it -> pin all the dependencies -> rezip it. and use that.
.tgz from the local build
Tried that adding tar as local dependency but still throwing same errors
Pin all the dependencies. Remove the caret and reinstall.
@sibiraj-s .Understood the approach you mentioned but can we have a patch-package release ?So that it will be easier for all the people that are stuck with older version and cant update
Not sure, Several versions are affected. It's not possible to patch all. And there are several changes between versions. I don't have the bandwidth ATM. I can try this weekend. Can't be sure.
To avoid getting into these situations. I have pinned all dependencies for now.
@sibiraj-s Done the local .tgz but still getting the error .Any idea about this
Sorry I did not see the notification. Can you try clearing node modules and reinstall?
Pin all the dependencies. Remove the caret and reinstall.
Tried That too, but same errors are still coming.
@sibiraj-s Done the local .tgz but still getting the error .Any idea about this
Did you get any solution for this error?
@sibiraj-s Done the local .tgz but still getting the error .Any idea about this
Did you get any solution for this error?
Not till now.Tried the same steps that @sibiraj-s mentioned not sure what went wrong
Sorry I did not see the notification. Can you try clearing node modules and reinstall?
Tried that and removed package.lock.json but still getting
@johnantony92 . Try this solution I was able to get the editor working in lower versions. https://github.com/sibiraj-s/ngx-editor/issues/409#issuecomment-1146745067.
You don't have to zip, just use npm overrides
or yarn resolutions
.
@johnantony92 . Try this solution I was able to get the editor working in lower versions. #409 (comment).
You don't have to zip, just use
npm overrides
oryarn resolutions
.
thanks @sibiraj-s Is this how overrides work?
@johnantony92 . Try this solution I was able to get the editor working in lower versions. #409 (comment). You don't have to zip, just use
npm overrides
oryarn resolutions
.thanks @sibiraj-s Is this how overrides work?
Yes @johnantony92 .
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.
What happened?
Ng build suddenly started giving for ngx-editor it seems like something from the update of prosemirror command it was working fine and started giving error in the last few days
Version
9.02
Angular Version
11
What browsers are you seeing the problem on?
Firefox, Chrome, Safari
Link to reproduce
No response
Relevant log output
No response
Willing to submit a PR?
No response