GithubHelp home page GithubHelp logo

Comments (12)

apppro123 avatar apppro123 commented on May 20, 2024 1

Now it works (after i updatet react-native and babel).
I have another question: Which permissions does vasern need?

from vasern.

apppro123 avatar apppro123 commented on May 20, 2024 1

Yes, perfect ty!

from vasern.

hieunc229 avatar hieunc229 commented on May 20, 2024

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.

hieunc229 avatar hieunc229 commented on May 20, 2024

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.

apppro123 avatar apppro123 commented on May 20, 2024

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.

hieunc229 avatar hieunc229 commented on May 20, 2024

It might related to this issue facebook/react-native#21241 (comment). There are also severals fixes in the same topic

from vasern.

apppro123 avatar apppro123 commented on May 20, 2024

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.

apppro123 avatar apppro123 commented on May 20, 2024

After i removed this line (line 538 in Document.js) it worked (i can now import Vasern from "vasern")

from vasern.

hieunc229 avatar hieunc229 commented on May 20, 2024

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?

  1. Make sure the Document.import(Queryable) is at the end of Document.js

  2. Since it complains about metro-react-native-babel-preset, have you got it on your package.json, under devDependencies? If not, install and save it to dev

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.

  1. 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.

hieunc229 avatar hieunc229 commented on May 20, 2024

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.

apppro123 avatar apppro123 commented on May 20, 2024

Ok, thank you!

from vasern.

hieunc229 avatar hieunc229 commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.