Comments (7)
@kneth thanks for you response.
We are using v12.6.2 due to the export of the Unmanaged type, however I reverted back to 12.6.0 to test your assertion and it still falls over on the import, albeit this time with a TypeError rather than an 'Cannot find module' error.
FAIL src/__tests__/useStartOfDayData.spec.tsx
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'bind')
1 | import React from "react";
> 2 | import Realm from "realm";
Let me know if there's any more information I can provide to help with this.
from realm-js.
➤ PM Bot commented:
Jira ticket: RJS-2766
from realm-js.
@ldoot Thank you for reporting.
In v12.6.1 we migrated away from rollup, and I wonder if it has an impact on Jest. Is it possible to try v12.6.0 to give us an indication?
from realm-js.
Cannot find module '/Users/diongrendelman/Projects/verbleif/verbleifapp/node_modules/realm/binding/build/realm.node' from '/Users/diongrendelman/Projects/verbleif/verbleifapp/node_modules/realm/binding/generated'
Require stack:
node_modules/realm/binding/generated/native.node.cjs
node_modules/realm/dist/platform/node/binding.js
node_modules/realm/dist/platform/node/index.js
node_modules/realm/index.react-native.js
src/database/schemas/ClientSchema.ts
src/database/realm.config.ts
Same issue here
"realm": "^12.6.2",
from realm-js.
Update, not happining on 12.6.0
from realm-js.
I had the same problem. Doesn't happen on 12.6.0.
from realm-js.
I appreciate that this issue may be fixed with a downgrade as mentioned to be working by Acetyld and villemuittari, however as we are making use of the Unmanged
type exported in v12.6.2
this can't work in our case and I suspect the case of others too.
Is there any other possible fix for this issue?
from realm-js.
Related Issues (20)
- Upgrade to BSON v6 HOT 2
- Expose an API that allows merging collections rather than replacing them HOT 1
- Bundling with Metro warns with "Require cycles are allowed, but can result in uninitialized values." HOT 1
- Handle Role Changes without Client Reset HOT 1
- Upgrade to Realm Core 14.4.0 HOT 1
- Upgrade to Realm Core 14.4.1 HOT 1
- React Native Android application crashing when using syncSession.addConnectionNotification HOT 9
- getSyncSession cannot resolve session even though it exsist HOT 6
- [realm/react] Account for new `ObjectId` refs used in the dependency list HOT 6
- Multi-threaded support for Electron / NodeJS HOT 3
- baseUrl Change (Realm Web) HOT 1
- Calling `User#linkCredentials` with the email of a non-existing user or wrong password never surface error HOT 1
- "free(): invalid pointer" when running on Ubuntu x86_64 and Node.js >= v20.12.0 HOT 4
- Ensure we have `clang-format` installed on CI runners when generating bindings HOT 2
- Upgrade to Realm Core 14.5.0 HOT 1
- Random SIGSEGV error and crash on production HOT 2
- Error Realm initialization with sync enabled due to mismatch schema is not calling onError function HOT 2
- Version mismatch does not block sync HOT 5
- Run React Native integration tests in more configurations HOT 2
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 realm-js.