Polymer website tutorial not running | undefined is not a function - polymer

I'm new to polymer and I started to follow this easy first tutorial on the official website
http://www.polymer-project.org/docs/start/tutorial/step-1.html
all was very easy but nothing was working. Or better, I have only one problem. When I tap on the top menu ("All or favourite") nothing changes and I get this error on console
Uncaught TypeError: undefined is not a function Element.js:104
Selected: favorites (index):65
Uncaught TypeError: undefined is not a function Element.js:104
Exception caught during observer callback: TypeError: undefined is not a function
at b.classList (http://127.0.0.1/polymer/components/platform/platform.js:13:20941)
at Polymer.selectedIndexChanged (data:text/javascript;base64,CgogIFBvbHltZXIoJ3BhcGVyLXRhYnMnLCB7CiAgICAKICA…cG9uZW50cy9wYXBlci10YWJzL3BhcGVyLXRhYnMuaHRtbC9wYXBlci10YWJzLmpzCg==:45:26)
at e.invokeMethod (http://127.0.0.1/polymer/components/polymer/polymer.js:12:10242)
at e.notifyPropertyChanges (http://127.0.0.1/polymer/components/polymer/polymer.js:12:9459)
at Object.Observer.report_ (http://127.0.0.1/polymer/components/platform/platform.js:12:12892)
at Object.createObject.check_ (http://127.0.0.1/polymer/components/platform/platform.js:12:18346)
at Object.global.Platform.performMicrotaskCheckpoint (http://127.0.0.1/polymer/components/platform/platform.js:12:13792)
at http://127.0.0.1/polymer/components/platform/platform.js:16:24471
at Object.c [as callback_] (http://127.0.0.1/polymer/components/platform/platform.js:15:9571)
at Array.c (http://127.0.0.1/polymer/components/platform/platform.js:12:27047)
I thought I did something wrong so I downloaded the example file but I have downloaded the source of the example and I still get the same errors.
Any help? =)
Thx everyone!

Some components in the tutorial repo were out of sync. If you pull the updated repo, these errors should go away.

Updating chrome to version 35 or use Chrome Beta
It errors on my linux box which has Chrome Version 34.0.1847.137.
It works on windows7 with Chrome 35.0.1916.153m

I had the same problem.This is the error report https://github.com/Polymer/polymer-tutorial/issues/3
And this is where you can find the answer
https://github.com/Polymer/polymer-tutorial
It worked for me :)

Related

Google map Loading Error -> Uncaught TypeError: Cannot read property 'ga' of undefined at common.js:143

Getting the error
Uncaught TypeError: Cannot read property 'ga' of undefined at common.js:143 while loading google maps since today.
Using Version: 3.27
Api call - https://maps.googleapis.com/maps/api/js?client=CLIENT_ID&v=3.27&libraries=geometry,places,drawing&callback=gMapsCallback
The map had been working fine,no other changes were made in the code. Debugging a bit could see a reference of "this" value getting changed in the common.js function of the google maps for some tile load calls.
Any help would be appreciated. Thanks.
As the frozen version is now 3.29, It is plausible to assume that a new version came into force and, as a result the version you are now running (3.27) throws an error. See all the relative info here
You just have to request the frozen version with the following bootstrap:
<script async defer
src="https://maps.googleapis.com/maps/api/js?v=3.29
&key=YOUR_API_KEY&callback=initMap">

flashdevelop error while loading initial content

I have been struggling with this stupid error from couple of hours. Have tried everything but it still persists. I'm unable to run any Flash Mobile AS3 project in FlashDevelop.
This is what it says in Output panel:
Debugger startup error. For troubleshooting see: http://www.flashdevelop.org/wikidocs/index.php?title=F.A.Q
Error details: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at net.sf.jni4net.jni.JNI.Dll.JNI_GetDefaultJavaVMInitArgs(JavaVMInitArgs* args)
at net.sf.jni4net.jni.JNI.Init()
at net.sf.jni4net.jni.JNI.CreateJavaVM(JavaVM& jvm, JNIEnv& env, Boolean attachIfExists, String[] options)
at net.sf.jni4net.Bridge.CreateJVM()
at net.sf.jni4net.Bridge.CreateJVM(BridgeSetup setup)
at FlashDebugger.DebuggerManager.Start(Boolean alwaysStart)
[Capturing traces with FDB]
and this is what it shows in the console/command prompt:
error while loading initial content
Please if anyone had seen this error and solved it successfully, I would really appreciate any help. Screenshot attached below.
Thanks!
Looks like you are using wrong Java SDK version 64 bit rather than 32 bit which FlashDevelop requires

Error: VB runtime is not loaded

Edited version, after suggestion from community:
In a Windows 8.1 Phone project (Part of a VB.Net Solution with also a Store app and a Portable Class Library) I get this error message:
Call not possible because VB Runtime is not loaded.
but as far as I can trace the code keeps running in spite of this. Until... eventually an error pops up, telling me that
Could not find Windows Runtime type 'Windows.foundation'
What I have found so far on this subject seems to have a relation with Silverlight and very old versions of VB Runtime. Nothing recent.
Further on during execution in the error trap the following explanation is given:
at System.StubHelpers.WinRTTypeNameConverter.GetTypeFromWinRTTypeName(String typeName, Boolean& isPrimitive)
at System.StubHelpers.SystemTypeMarshaler.ConvertToManaged(TypeNameNative* pNativeType, Type& managedType)
at Windows.UI.Xaml.Controls.Frame.Navigate(Type sourcePageType)
at Dossier365.Mobile.Behaviors.MenuTegelClickAction.ReageerOpMenuKeuze(Object sender, Object parameter).
I have attached a screenshot with the different messages. The Store App runs fine, based on the same PCL.
EDIT: after suggestions below: added DirectCast:
Now a new error message appears: I have no clue what goes on here or moreover: how to overcome this situation. My attempts so far have not lead to a workable solution.
Anyone with a good suggestion or solution?

Easeljs 'createPattern' on 'CanvasRenderingContext2D Issue

I am developing game using easeljs frame work i am getting following error.
Uncaught TypeError: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': No function was found that matched the signature provided.
Any One please help me.
Thanks in advance
manoj kumar

AS3 Error 1180 Call to a possibly undefined method in IntelliJ

I am getting compiler error:
Error 1180: Call to a possibly undefined method when all imports are ok and all method definitions are ok in IntelliJ, double checked?
What could it be?
I had the same trouble, but solution was very easy. One of my package in project was with name "notification" and it had conflict with standart package name, so i had changed name to "notificationS" and compilier had began work without erros.
The thing is if you did some refactoring on the class that you are getting the error, you have to go to menu:
Build > Rebuild Project
If you just do debug or run, it doesnt work for some reason.
I am not sure if the reason is simple refactoring or some git merge, but solution is here.