Closed Bilonik closed 3 months ago
➤ PM Bot commented:
Jira ticket: RDART-1089
Workaround:
dependency_overrides: ejson: git: url: https://github.com/realm/realm-dart ref: main path: packages/ejson
Workaround:
dependency_overrides: ejson: git: url: https://github.com/realm/realm-dart ref: main path: packages/ejson
can you help how to do this. I dont understand
@mniyaz just put lines shown above to your pubspec.yaml
:
dependency_overrides:
ejson:
git:
url: https://github.com/realm/realm-dart
ref: main
path: packages/ejson
and run flutter pub get
afterwards.
@mniyaz You need to update your pubspec.yaml
with the suggested _dependecyoverride
dependency_overrides:
ejson:
git:
url: https://github.com/realm/realm-dart
ref: main
path: packages/ejson
Alternatively you can pin realm
to 3.3.0 until this mess is sorted out.
The reason this is happening is that realm 3.4.0
was released without ejson 0.4.0
being released. The ejson
packages are still pre 1.0, and one of the things still outstanding is that the github action workflow for publishing (publish-release.yml
) doesn't include them yet.
Just pining realm to 3.3.0 using
dependencies:
realm: '3.3.0'
is insufficient. I also had to do
dependency_overrides:
realm_common: '3.3.0'
realm_dart: '3.3.0'
realm_generator: '3.3.0'
otherwise these were resolved to their latest versions (3.4.0) in pubspec.lock
. Not sure if this is required but still leaving it here if someone will have the same issue.
This will be fixed shortly in 3.4.1.
What happened?
Cant run Realm 3.4.0
I think is missing the new ejson package.
Repro steps
Version
3.24
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Flutter Application
Client OS and version
iOS 17
Code snippets
No response
Stacktrace of the exception/crash you're getting
Relevant log output
No response