Comments (12)
I have opened a PR here with the changes that worked for me.
from ionic-starter-super.
Thanks, we're not quite production ready with this repo yet, wanted to get some feedback over the last month or so. We'll tend to it a bit now that things are more stable soon
from ionic-starter-super.
@ryanrain
So in #2, could you provide us newbies with more information on the correct way to do this step. I tried but kept getting red squiggly lines. In my app.module.ts that I got just a few minutes ago, I did step #1. The providers() in @NgModule was empty already between the parenthesis. Also, in @NgModule, I see this: IonicModule.forRoot(MyApp) NOT what is written in your #4. Which one is correct?
from ionic-starter-super.
@ryanrain The instructions given above DO NOT help or solve anything, they're just the instructions on how to update to ionic-storage 2.0 for vanilla Ionic apps.
I have no idea why they were posted, and I can confirm that even after following those steps my app still isn't working. Its like they completely changed the way the Storage module works and have invalidated the super starter.
For now we'll wait for an update to the super starter before being able to update to 2.2.0...I wish I knew more about the internals of the Ionic Storage module and could fix this
from ionic-starter-super.
@LiveListMobile @mikehamil10
unfortunately i too am just starting to use ionic, and so can't yet be of much help here. if i could i would have submitted a nice pull request... other templates, such as blank, or tabs, still work:
ionic start myApp blank --v2
from ionic-starter-super.
Take a look at the new documentation here, can you try changing it to that in the meantime and let me know if it works for you? We'll have to do a patch anyways but I can't get to it for a bit.
Note the change to IonicStorageModule
and specifying it in the imports rather than as a provider.
http://ionicframework.com/docs/v2/storage/
from ionic-starter-super.
@mlynch many thanks! reading code in this repo is super (sorry) useful to those of us who are just starting to use ionic etc., and in need of guidance re: best practices.
sidenote: a fork i made with ngrx/store and ngrx-store-ionic-storage: https://github.com/ryanrain/ionic-starter-super
from ionic-starter-super.
@pwespi I've copied the changes you have made in your PR and they have worked for me also, nice work,
from ionic-starter-super.
@pwespi so sad :-/ as it still doesn't work for me as everything seems to be correctly setup.
Error is :
Runtime Error
Can't resolve all parameters for Storage: (?).
Environment :
Ionic Framework: 2.2.0
Ionic Native: 2.4.1
Ionic App Scripts: 1.1.4
Angular Core: 2.4.8
Angular Compiler CLI: 2.4.8
Dependencies:
...
"@angular/platform-browser-dynamic": "2.4.8",
"@angular/platform-server": "2.4.8",
"@ionic/storage": "2.0.0",
"ionic-angular": "2.2.0",
"ionic-native": "2.4.1",
...
from ionic-starter-super.
@slegouffe Sorry to hear that. Maybe try starting again from a bare app with the super template ionic start super-storage-test super --v2
and replace the app.module.ts with this.
from ionic-starter-super.
@pwespi: another confirmation here. The updated ionic docs include the correct way to reference the Storage module.
from ionic-starter-super.
Fixed in #82
from ionic-starter-super.
Related Issues (20)
- Warning: Can't resolve all parameters for Settings in src/providers/settings.ts: ([object Object], ?). This will become an error in Angular v5.x HOT 5
- Google Maps display a blanc screen
- Too slow to load ! White screen shows up for 10 seconds even after the splash screen. HOT 4
- Question: Use Lazy Loading For Pages HOT 3
- maps.ts and item-create.ts can't work out of the box because of missing Cordova plugins
- How to show tutorial once and skip the next one HOT 1
- User.prototype.login HOT 2
- Animal List Misses Albert Albatros HOT 2
- Broken template due to erroneous commit HOT 2
- clone HOT 3
- search is deprecated HOT 14
- Closed Issue
- ionViewDidLoad in app component doesn't get called HOT 2
- Check if source is cordova after platform.ready() HOT 3
- An Android apk couldn't be done with "ionic cordova build android --prod --release" HOT 7
- [ERROR]Using HttpParams Class has Error (ionic-starter-super/src/providers/api/api.ts)
- add function enableProdMode HOT 1
- Firefox search doesn't work HOT 11
- Send JWT HOT 6
- Cant use custom pipe globally HOT 1
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 ionic-starter-super.