Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Uncaught TypeError: this.$.document.save is not a function #9

Open
felipesousa opened this issue Jul 10, 2017 · 2 comments
Open

Uncaught TypeError: this.$.document.save is not a function #9

felipesousa opened this issue Jul 10, 2017 · 2 comments

Comments

@felipesousa
Copy link

Following steps in https://codelabs.developers.google.com/codelabs/polymer-firebase-pwa/index.html?index=..%2F..%2Findex#24 Codelab, I see this error in my console.

na-behavior.html:70 Uncaught TypeError: this.$.document.save is not a function
    at HTMLElement.save (na-behavior.html:70)
    at HTMLElement.commitChange (na-behavior.html:49)
    at HTMLElement.handler (polymer.html:507)
    at HTMLElement.fire (polymer.html:1284)
    at HTMLElement.close (na-editor.html:138)
    at HTMLElement.save (na-editor.html:125)
    at HTMLElement.handler (polymer.html:507)
    at HTMLElement.fire (polymer.html:1284)
    at Object.fire (polymer.html:856)
    at Object.forward (polymer.html:1153)

Someone have too this problem?

@louismanson
Copy link

Probably on this moment you did found the answer,if not, the tutorial from the code labs needs an update. Go to bower_components/note-app/common/note-app/na-behavior.html, check the line 70 and change the save to saveValue, it must look like this.

return this.$.document.saveValue(this.notesPath).then(() => {

that function change for the actual version of Polymer. if you still have the problem, clear the cache and run again.

@felipesousa
Copy link
Author

@louismanson congratz brother! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants