When I try to save the file I’ll get the SyntaxError for the line + position of the colon for the one at the property engine and for the parameter engine.
Is there something wrong with this code? All the examples I’ve seen so far look the same.
Please help me
Thanks for pointing me in the good direction. Only thing is that I don’t fully understand how to fix this problem yet. I’m new to developing in Ionic so hopefully there’s someone else who can help me solve this problem together with me. Meanwhile I will do my best to get this solved by myself. Thanks again!
I really can’t figure out whats wrong with my babel configuration. According to the link I need babel-preset-react, and I have it. This is how my package.json looks like:
Hey all! That is a valid TypeScript type, but it isn’t valid ES6/ES2015 syntax. Angular2 uses that type information in TypeScript projects for doing dependency injection, so in JS projects you need to use the static getter parameters to attach that information to the class (so Angular2 knows what thing it should inject).
This didn’t error previously because Ionic starters were using the TypeScript compiler under the hood, but it should have been, as types are not valid syntax in JS.
Hi! Could someone kindly expand on this? I have a simple component that gives me this error:
Syntax error: …Missing class properties transform. while parsing file:…
It’s an Ionic 2 project. My project is just Javascript. I have been using static get parameters but I am unsure how to implement this for an Input directive.