Comments (11)
Any news @cdata? Right now we can't use the component without the polyfill :(
from app-storage.
Any news @cdata? :(
from app-storage.
@cdata any news about this?
from app-storage.
The common-worker.html error is because the document._currentScript
is undefined
:
var BASE_URI = document._currentScript.ownerDocument.baseURI;
var WORKER_SCOPE_URL = Polymer.ResolveUrl.resolveUrl('common-worker-scope.js', BASE_URI);
( I has tried to hardcoded the WORKER_SCOPE_URL
variable, and it works. )
from app-storage.
I've been running into this and wondered why something that seems better was removed. cd26416#commitcomment-17661405
from app-storage.
Thanks for the reference, @skeemer!
from app-storage.
I think we need to remove the underscore. From:
var BASE_URI = document._currentScript.ownerDocument.baseURI;
To:
var BASE_URI = document.currentScript.ownerDocument.baseURI;
And the webcomponents.js make the polyfill.
(I has tried, and it seems to be working)
from app-storage.
I had the same issue. polyfill use document._currentScript but for navigator that don't need polyfill var document._currentScript does not exist.
Using var BASE_URI = document.currentScript.ownerDocument.baseURI;
works like a charm on chrome :)
from app-storage.
Same problem here... How can we solve this ?
I changed :
var BASE_URI = document._currentScript.ownerDocument.baseURI;
by:
var BASE_URI = document.currentScript.ownerDocument.baseURI;
It worked.
but now I have another error that remains:
app-indexeddb-mirror.html:249 Uncaught TypeError: Cannot read property 'validateSession' of undefined
__updatePersistedData: function() {
this._log('Updating persisted data..');
this._enqueueTransaction(function() {
return this.client.validateSession(this.session); <==== Problem here
});
UPDATE : I just unlogged from other apps that I was working on (Google Auth) and did a force refresh on my browser and it solved this last error.
from app-storage.
Yay! 😀
from app-storage.
@cdata within the last few days this seems to have reappeared on 2.0-preview
. Should #66 also be applied to that branch?
from app-storage.
Related Issues (20)
- Polymer 2.0 requires a class instead of Polymer({...})
- Cannot read property 'baseURI' of undefined HOT 3
- app-indexeddb-mirror and already persisted store
- IE/Edge can't sync local-storage data HOT 1
- Firebase Example Doesn't Work HOT 1
- `someUniqueSessionKey` in README/docs, but not in example
- How to use zeroValue function to initialize the default value? HOT 1
- this.set('path',value) doesn't reflect changes in the local storage.
- <app-localstorage-document> always initialize with the default value despite the value has been stored HOT 1
- I want to get data what i added in persisted-data on browser refresh HOT 3
- In setStoredValue: function(path, value) value is not used
- IE11 does not work
- [Feature Request] - App-indexeddb-mirror Load if offline OR data is empty
- how to use app-indexeddb-mirror with firebase. docs issue HOT 1
- Polymer.AppNetworkStatusBehavior name wrong in documentation
- Multiple <app-indexeddb-mirror> not working when offline
- app-indexeddb-mirror not working consistently HOT 16
- exception HOT 1
- app-indexeddb-mirror cause app not responding HOT 2
- app-local-storage-document uses window.top, crashing iframes 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 app-storage.