Comments (4)
I can see in your error that the error originates from the node_modules folder of countup.js-angular2
. That shouldn't be there. One other issue was because of that. I believe it's because you have an older version of npm, which recursively installs node_modules, instead of keeping them all in the root node_modules folder and npm now does.
On my end I cannot repro that. I am on:
node: 10.4.1
npm: 6.1.0
Here's a fix:
- upgrade node and in turn npm. Note that this can potentially cause issues in other node projects that are counting on a certain version of node. You can use nvm and an .nvmrc file to fix that
- blow away your node_modules:
rm -rf node_modules
- reinstall:
npm i
.
You could try yarn too:
brew install yarn
yarn
- installs
Try that and let me know how it goes so we can resolve this issue.
from ngx-countup.
I updated to the latest versions (I was on node 0.8.11.1 & npm 5.6 so it wasnt that much of an update.
The updated versions:
> node --version
v8.11.3
> npm --version
6.1.0
The same thing happened as before:
Error encountered resolving symbol values statically. Calling function 'ɵmakeDecorator', function calls are
not supported. Consider replacing the function or lambda with a reference to an exported function, resolving
symbol NgModule in
/Users/user/Desktop/app/node_modules/countup.js-angular2/node_modules/@angular/core/core.d.ts,
resolving symbol CountUpModule in
/Users/user/Desktop/app/node_modules/countup.js-angular2/countup.js-angular2.d.ts, resolving symbol
CountUpModule in /Users/user/Desktop/app/node_modules/countup.js-angular2/countup.js-angular2.d.ts
I also tried with Yarn to no avail. I still find it works with 1.1.1 though (npm and yarn).
Looking at the other issue posts it seems a common issue, but the recurring pattern is the use with Ionic (which uses Angular 5.0 if its relevant)
from ngx-countup.
I'm using ng-packagr to distribute this and I've had some trouble with it; there is no prescribed workflow so how to handle dependencies is a little hazy to me.
I still can't repro but what you can do is just copy the directive .ts file from src/app/countup/countup.directive.ts and declare it in a module. Then you just need to npm i countup.js --save
to get the countUp dep.
Wish I knew why angular doesn't just let you distribute typescript files, it would drastically simplify things!
from ngx-countup.
Hi, I think this is resolved, I just pushed 6.0.2 which only has angular as a peer dependency. Please try it and if you still have trouble we can reopen.
from ngx-countup.
Related Issues (20)
- Error on import module to test in Jest HOT 5
- How to reset countup js? HOT 2
- Performance Improvements using zone.js HOT 3
- Extend peer dependencies to Angular 8 HOT 2
- Uncaught SyntaxError: Unexpected token export HOT 7
- Start animation when element is scrolled or is visible in viewport HOT 3
- How to add a style? HOT 1
- Error on server side rendering HOT 10
- 'kind' of undefined HOT 2
- angular 9 HOT 2
- NG build --prod failing due to "cannot read 'kind' of undefined" HOT 1
- Can't bind to 'endVal' HOT 5
- Angular 10 HOT 1
- Bugs: Wrong switching to new animation during old HOT 1
- Does not build with Angular 10 HOT 7
- Angular 13 HOT 1
- Make the animate function public HOT 2
- Angular 15 compability HOT 4
- "Works with Universal" but doesn't HOT 5
- This likely means that the library (ngx-countup) which declares CountUpModule is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy. HOT 3
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 ngx-countup.