Comments (12)
Now it works (after i updatet react-native and babel).
I have another question: Which permissions does vasern need?
from vasern.
Yes, perfect ty!
from vasern.
Hi @apppro123
First: Can you clarify what are "different files"? Also since Vasern is a local storage itself, I am confused about "the local storage" that you mentioned? Are you trying to sync data with an existing local storage? (It'd be great if you can provide a specific example)
Sure you can store and get objects with Vasern at any time. Though it needs a schema and might need to convert the format between 2 local storage.
Second: There are a few things need to be clean up in the "package.json". I'll have a look and push a fix (hopefully within today)
from vasern.
I have pushed a fix (clean up dependencies) 9b73f9b
You can remove and reinstall the lastest version (0.2.9) to apply changes
from vasern.
At the moment i get this issue (after updating):
error: bundling failed: Error: Couldn't find preset "module:metro-react-native-babel-preset" relative to directory "C:\Users\kalla\OwnApp\node_modules\vasern"
from vasern.
It might related to this issue facebook/react-native#21241 (comment). There are also severals fixes in the same topic
from vasern.
After i deleted .babelrc it build it but on the screen it shows another error related to Document.js
for example the last line Document.import(Queryable);
What does this line do? And why is not the import at the beginning of this file like every other import?
And with Queryable, is the file Queryable.js meant?
from vasern.
After i removed this line (line 538 in Document.js) it worked (i can now import Vasern from "vasern")
from vasern.
Vasern has a modular architecture (basically it was built in different parts and then plug in together).
When you removed Document.import(Queryable)
, you have just detached retrieve and filter items functions. So the Document.data()
and Document.get()
didn't works as you described on #7
Can you help me to clarify things below?
-
Make sure the
Document.import(Queryable)
is at the end ofDocument.js
-
Since it complains about
metro-react-native-babel-preset
, have you got it on yourpackage.json
, underdevDependencies
? If not, install and save it todev
npm install --save-dev metro-react-native-babel-preset
Once you complete, start your project and see if the error is still there. If it does, then go to the next step.
- Setup your project using metro-react-native-babel-preset. If your project has already used another babel preset, you might get complain in your current apps.
Create a .babelrc
in the root of the project, and add this line
{
"presets": ["module:metro-react-native-babel-preset"]
}
Let me know how it goes!
from vasern.
Great!
I am not sure which permission you want to know? Currently, Vasern doesn't require any permission in either application settings or input/output data files.
from vasern.
Ok, thank you!
from vasern.
No worries, I'm glad it helps!
Since you have solved the problem by update react-native and babel. I'll go ahead and close this issue. Feel free to reopen or create another issue :)
from vasern.
Related Issues (20)
- is this still in active development? HOT 4
- broken data on load app HOT 8
- insert not work HOT 2
- Unable to build for Android but working fine in IOS
- I want to know how to save the server API data from the location with vasern, I can't see more details in the documentation HOT 3
- Data is not updated when saving HOT 1
- does vasern supported Bulk Insert? HOT 11
- Error when linking HOT 2
- Slack link is not working anymore HOT 2
- Relationship table HOT 4
- React Native Bridge -> JSI
- Queryable limit
- Functions names
- C++ business logic
- Queryable events
- Insertion problem HOT 3
- Support default Value? HOT 8
- Feature: Encryption option HOT 8
- Numbers inserted as strings HOT 2
- Broken Links in Getting Started Section 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 vasern.