Comments (6)
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.
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.
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.
Same problem here. I also got it working by commenting out @onchange in tooltip.directive.ts
from mdb-angular-ui-kit.
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.
My eyes were burnt looking at the code formatting.
from mdb-angular-ui-kit.
Related Issues (20)
- ERROR in Illegal State: referring to a type without a variable "name":"WavesDirective","members":[]} HOT 1
- mdbInput in mdbModal not getting cleared on this.demoBasic.hide(); HOT 3
- Angular 13 support HOT 3
- Hamburger animation doc not available for angular in mdb bootstrap 4 HOT 2
- Dropdown menu can't be navigated with arrow key HOT 2
- Cannot upgrade to Angular v14 due to package dependency on @angular/cdk v13 HOT 8
- Not working fade animation in tabs HOT 2
- Multilevel dropdown doc not available for MDBA4 HOT 1
- Accordion - Incorrect triggering of Events: itemShown, itemHidden HOT 2
- Dont work to Angular 15 HOT 5
- angular-bootstrap-md + Angular 15 HOT 3
- _option.scss variables HOT 2
- Bug with the class "modal-dialog-scrollable" HOT 2
- Bug with sidenav and slim HOT 2
- Angular 16 Support Release Date? HOT 3
- [Bug] Dropdown position bugged since 5.0.0 HOT 4
- Compatible Angular 17 HOT 4
- Angular 16 Support Migrating from angular-bootstrap-md HOT 1
- Bootstrap version and :root parameters
- ERROR TypeError: can't access property "menuPositionClassChanged", this._dropdownMenu is undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdb-angular-ui-kit.