-
Notifications
You must be signed in to change notification settings - Fork 12k
Angular 2 and Owl carousel 2 / erro : $(...).owlCarousel is not a function #4533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same Problem here :( |
You will be able to fix this issue by using:
|
Closing as answered. |
This is failing at runtime for me:
How did you guys work owlCarousel work with cli? |
Problem not solved with npm install --save-dev @types/owlcarousel |
Do you also have jquery types installed? |
@RicardoVaranda Yes. I have installed it already with command npm install script-loader |
@amitgaur208 Could you create a repo project and upload it to github so I can pull and fix it, will be easier this way to see what modifications are required, thanks! |
This is how I fixed the problem and made it work: dereklin/angular-cli-owl-carousel@bd6b30a |
Closing as inactive. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
angular-cli: 1.0.0-beta.28.3
node: 6.9.4
os: win32 x64
Repro steps.
I put this in angular-cli.json :
The log given by the failure.
EXCEPTION: Uncaught (in promise): Error: Error in :0:0 caused by: $(...).owlCarousel is not a function
TypeError: $(...).owlCarousel is not a function
at OwlCarouselComponent.ngAfterViewInit (http://localhost:4200/main.bundle.js:28:27)
at CompiledTemplate.proxyViewClass.View_OwlCarouselComponent_Host0.detectChangesInternal (/AppModule/OwlCarouselComponent/host.ngfactory.js:32:79)
at CompiledTemplate.proxyViewClass.AppView.detectChanges
The text was updated successfully, but these errors were encountered: