Comments (6)
Maintainer of Snowpack here! Snowpack uses Rollup to install your dependencies, so I just wanted to highlight that this is most likely affecting all other Rollup projects as well.
from offix.
Hi @FredKSchott,
What are your thoughts on next steps for getting offix to work with snowpack? I think your comment implies that rollup is the place where this needs to get fixed, rather than here (but I'm not 100% -- sorry if I'm being dense here)
If you think I ought to just repost this as a rollup issue (I am happy to do this), can you point me in the direction of your rollup.config.js
file, and let me know any other helpful info I could include in the issue?
from offix.
I would look to see if we can do something about it. We use browserify and webpack. There is issue we have to start publishing our packages in minified precompiled version ( we do not do that now)
from offix.
Thanks @wtrocki. So I think you're saying this is an issue that would need to be addressed in offix, not snowpack or rollup. Or am I oversimplifying it? I do see (I think?) an analogous suggestion in the apollo issue mentioned in my initial post.
@FredKSchott, is there something I can do in Snowpack analogous to this workaround, from the same apollo issue?
@lukastaegert (rollup maintainer) -- do you have any thoughts on this, or suggestions for a work-around?
from offix.
Offix exports modules using common.js format.
https://github.com/aerogear/offix/blob/master/tsconfig.json#L16
Those cannot be used in the web directly and require users to use bundler.
This is due to number of factors:
- If you care about bundle size using common.js format will allow us to minimalize bundle size
- Avoid problems with using specific bundlers (webpack, rollup issues people report).
@jfrancos Offix itself wasn't updated to latest Apollo version. If you require only read only access check apollo cache persist (which have been tested with Apollo 3.0 and has active rollup config)
I'm mantainer of both projects. In offix we currently building an datastore solution.
For Apollo 3.0 offline support I would recommend to use https://github.com/apollographql/apollo-cache-persist that exports package in bundled and minified form.
As for issue this is due to using '@apollo/client' (3.0)
with the packages that are coming from apollo 2.0
from offix.
Hi @jfrancos, we have made the decision to move away from the Apollo client and we have decided to deprecate our Offix packages and release our Datastore. I will be closing this issue, but if you have any questions, please feel free to let us know.
You can see the docs for the updated datastore here:
https://offix.dev/docs/getting-started
from offix.
Related Issues (20)
- Action Required: Fix Renovate Configuration
- Reverting a offline mutation HOT 7
- Issue with nested objects in variables HOT 2
- Expose network status change HOT 3
- npm package seems out of date for react-offix-hooks HOT 2
- Docs concept page is blank
- Offline Search dgraph
- Error subbscribeToUpdate is undefined at react-native example project
- How offix supports File offline upload ? HOT 4
- Dependency Dashboard
- Add ability to build query that includes all relationships
- Ability to provide late binding for datastore queries. HOT 9
- Please export ApolloQueryResult from offix HOT 2
- Getting error while build project HOT 1
- OfflineStore removeEntry expects v1:queue:yyyy but it's called with queue:yyyy HOT 3
- Interfaces versus Types generation HOT 1
- Aggregate Hooks Issue HOT 1
- Simplify Datastore flow HOT 4
- rxDB integration / offix Limitations HOT 9
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 offix.