Coder Social home page Coder Social logo

Comments (11)

abdonrd avatar abdonrd commented on August 28, 2024 10

Any news @cdata? Right now we can't use the component without the polyfill :(

from app-storage.

jesusprubio avatar jesusprubio commented on August 28, 2024 5

Any news @cdata? :(

from app-storage.

Borjagodoy avatar Borjagodoy commented on August 28, 2024 1

@cdata any news about this?

from app-storage.

abdonrd avatar abdonrd commented on August 28, 2024

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.

skeemer avatar skeemer commented on August 28, 2024

I've been running into this and wondered why something that seems better was removed. cd26416#commitcomment-17661405

from app-storage.

abdonrd avatar abdonrd commented on August 28, 2024

Thanks for the reference, @skeemer!

from app-storage.

abdonrd avatar abdonrd commented on August 28, 2024

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.

neckaros avatar neckaros commented on August 28, 2024

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.

dtruffaut avatar dtruffaut commented on August 28, 2024

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.

abdonrd avatar abdonrd commented on August 28, 2024

Yay! 😀

from app-storage.

TomK avatar TomK commented on August 28, 2024

@cdata within the last few days this seems to have reappeared on 2.0-preview. Should #66 also be applied to that branch?
image

from app-storage.

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.