izupet / angular2-counto

Angular 2 package for nice count animations
MIT License
40 stars 13 forks source link

Showing error #11

Open manoj-netlings opened 7 years ago

manoj-netlings commented 7 years ago

hi i am receiving this error in the browser console can you please guide me on this Error: (SystemJS) http://localhost:3000/node_modules/angular2-counto/src/counto.module.ts:4:1: Unexpected token @ http://localhost:3000/node_modules/angular2-counto/src/counto.module.ts:4:2: Semi-colon expected Error loading http://localhost:3000/node_modules/angular2-counto/src/counto.module.ts as "angular2-counto"

also will running i am receiving this error in console /node_modules/angular2-counto/src/counto.directive.ts(41,5): error TS7030: Not all code paths return a value.

Thanks

izupet commented 7 years ago

Did you follow the installation guide for SystemJS from docs? Maybe you should also look example at https://github.com/izupet/angular2-counto/tree/master/example where I load package with SystemJS for more clarity. I can not duplicate your error so you should strengthen your error report to give me some more information.

manoj-netlings commented 7 years ago

can you please provide me the system js confiq file so that i can get an idea on it since as you are mapping to a js file but there is not js file present so can you please help me out in it

srajan96 commented 7 years ago

@manoj-netlings @izupet Same problem . Tried compiling the files with TypeScript compiler and then using that file. I got an error then ERROR TypeError: co.onCountoEnd is not a function at Object.eval [as handleEvent] (home.component.html:103) at handleEvent (view.ts:141) at callWithDebugContext (services.ts:645) at Object.debugHandleEvent [as handleEvent] (services.ts:241) at dispatchEvent (util.ts:173) at eval (provider.ts:192) at SafeSubscriber.schedulerFn [as _next] (event_emitter.ts:119) at SafeSubscriber.__tryOrUnsub (Subscriber.ts:238) at SafeSubscriber.next (Subscriber.ts:190) at Subscriber._next (Subscriber.ts:135) at Subscriber.next (Subscriber.ts:95) at EventEmitter.Subject.next (Subject.ts:61) at EventEmitter.emit (event_emitter.ts:78) at eval (counto.directive.ts:95) at ZoneDelegate.invokeTask (zone.js:398) Please help.

nethusan commented 7 years ago

I receive this error: Module build failed: Error: ENOENT: no such file or directory, open (\node_modules\angular2-counto\src\counto.directive.js)

In the folder i can see the ts file but not any js file and i can not find any systemJs config file either, so could you provide more details about how to configure and find the systemJs file in the ionic 2 project?

izupet commented 7 years ago

@nethusan I am unfortunately almost unfamiliar with Ionic so I can't help you out there. Try to follow setup from example if that would help. @manoj-netlings @srajan96 I'll take a look asap when I'll have time. If any of you know how to fix it, pull request is welcome.

t1gu1 commented 7 years ago

I've the same probleme with ionic. You can solve the probleme by copying his files in your project and use it as a directive. (That's not nice, cannot update to your last release easier than it supposes to be)

You have to import countoModule in your lazyshared module to use it.

Works great when you can use it haha.

I think the problem is that you need to convert it in .js. Also you have to provide its self dependencies (node_modules)

Like these node_modules: Directive, Input, Output, EventEmitter, NgModule

_I'm not really sure. Maybe you should take an example on others nodemodule.

LiveLikeCounter commented 7 years ago

Hi @t1gu1 , I'm facing the same error: Module build failed: Error: ENOENT: no such file or directory, open 'E:\LivelikecounterIonic3\node_modules\angular2-counto\src\counto.directive.js.map'

You say: You can solve the probleme by copying his files in your project and use it as a directive. Which file do you mean by copying his file?

Thank you in advanced!

LiveLikeCounter commented 7 years ago

@nethusan , did you fixed the problem? If so, how did you?

rt2988 commented 6 years ago

src.zip @izupet Please commit all .js files in angular2-counto\src\ folder:

izupet commented 6 years ago

New version was published. Please let me know if that resolve the issue..