You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am trying to install monaco-editor npm package to test a version that potentially includes a bugfix, not available through the CDN at the day I'm writing this issue:
npm install monaco-editor@next
The command adds "monaco-editor": "^0.35.0-dev.20230202" in package.json BUT, npm clean-install fails:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @monaco-editor/react@4.4.6
npm ERR! Found: monaco-editor@0.35.0-dev.20230202
npm ERR! node_modules/monaco-editor
npm ERR! monaco-editor@"^0.35.0-dev.20230202" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer monaco-editor@">= 0.25.0 < 1" from @monaco-editor/react@4.4.6
npm ERR! node_modules/@monaco-editor/react
npm ERR! @monaco-editor/react@"^4.4.1" from the root project
The semver simulator indeed surfaces the peerDependency range does not include any -dev.xxx suffixed/unstable version
Describe the solution you'd like
Beta versions cannot be as nicely expressed as stable versions, as the range can only applies to a minor version in our case.
Another alternative I consider is adding extra flags to my project npm command (--legacy-peer-deps or --force) until monaco-editor@0.35.0 is published, thus picked up by the current peerDependency setup of @monaco-editor/react.
The text was updated successfully, but these errors were encountered:
thom4parisot
changed the title
Extend monaco-editor peerDependency range to include
Extend monaco-editor peerDependency range to include current monaco-editor@nextFeb 3, 2023
Is your feature request related to a problem? Please describe.
I am trying to install
monaco-editornpm package to test a version that potentially includes a bugfix, not available through the CDN at the day I'm writing this issue:The command adds
"monaco-editor": "^0.35.0-dev.20230202"in package.json BUT,npm clean-installfails:The semver simulator indeed surfaces the
peerDependencyrange does not include any-dev.xxxsuffixed/unstable versionDescribe the solution you'd like
Beta versions cannot be as nicely expressed as stable versions, as the range can only applies to a minor version in our case.
What do you think of having this instead?
Describe alternatives you've considered
Another alternative I consider is adding extra flags to my project npm command (
--legacy-peer-depsor--force) untilmonaco-editor@0.35.0is published, thus picked up by the currentpeerDependencysetup of@monaco-editor/react.The text was updated successfully, but these errors were encountered: