GithubHelp home page GithubHelp logo

Comments (6)

vadhavkar avatar vadhavkar commented on July 17, 2024 3

Looks like the problem is with the "@onchange" decorator used in Tooltip directive. If I comment it out in tooltip.directive.ts I dont get that error.

Asit

from mdb-angular-ui-kit.

danielsogl avatar danielsogl commented on July 17, 2024 2

I'm facing this issue since I also upgraded my Angular CLI to 1.5.2 so I downgraded to 1.5 and it worked.

I found this issue in the Angular-CLI repo: angular/angular-cli#8434 (comment)

from mdb-angular-ui-kit.

 avatar commented on July 17, 2024

Dear Daniel,
as you can notice it looks like an issue related to typescript.
Could you please share your project/code with us so we could analyse it? Please also provide us more information about the environment, os, Angular, CLI, TS versions etc.

from mdb-angular-ui-kit.

frankguns avatar frankguns commented on July 17, 2024

Same problem here. I also got it working by commenting out @onchange in tooltip.directive.ts

from mdb-angular-ui-kit.

Bloodcast69 avatar Bloodcast69 commented on July 17, 2024

Hey Guys,

I’ve checked this case, and found a fix for that. It’s problem with Typescript. I think, that it will be fixed in next TypeScript releases, but for now you can try to use solution of user ‘gmavritsakis’ added on GitHub: angular/angular-cli#8434 .

In file ‘typescript.js’ located in: node_modules/typescript/lib

Replace all the function
function nodeCanBeDecorated(node)
with the following code:

function nodeCanBeDecorated(node) {
       switch (node.kind) {
           case 229 /* ClassDeclaration */:
               // classes are valid targets
               return true;
           case 149 /* PropertyDeclaration */:
               // property declarations are valid if their parent is a class declaration.
   			// return node.parent.kind === 229 /* ClassDeclaration */;
   			return (node.parent && node.parent.kind === 229) || (node.original && node.original.parent && node.original.parent.kind === 229);
           case 153 /* GetAccessor */:
           case 154 /* SetAccessor */:
           case 151 /* MethodDeclaration */:
               // if this method has a body and its parent is a class declaration, this is a valid target.
               return node.body !== undefined &&
   				// && node.parent.kind === 229 /* ClassDeclaration */;
   				(node.parent && node.parent.kind === 229) || (node.original && node.original.parent && node.original.parent.kind === 229);
           case 146 /* Parameter */:
               // if the parameter's parent has a body and its grandparent is a class declaration, this is a valid target;
               // return node.parent.body !== undefined
               //     && (node.parent.kind === 152 /* Constructor */
               //         || node.parent.kind === 151 /* MethodDeclaration */
               //         || node.parent.kind === 154 /* SetAccessor */)
   			//     && node.parent.parent.kind === 229 /* ClassDeclaration */;
   			
   			var parent = node.parent || (node.original && node.original.parent);
   			return parent && parent.body !== undefined &&
                     (parent.kind === 152
                        || parent.kind === 151
                        || parent.kind === 154) && parent.parent.kind === 229;
       }
       return false;
   }

from mdb-angular-ui-kit.

jhourlad avatar jhourlad commented on July 17, 2024

My eyes were burnt looking at the code formatting.

from mdb-angular-ui-kit.

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.