Comments (3)
I also have the issue showing Owl-Carousel in Angular 7.x project. I am actually working on Angular-Universal project.
After adding the Owl-Carousel in Angular-Universal and then run the npm run ssr
, it will start node server to serve the angular pages. When I try to load the page, it shows below error
ERROR ReferenceError: $ is not defined
at OwlChild.WzYf.OwlChild.ngOnInit (webpack:///./dist-server/main.854bb442d3bcd3a5191c.js?:1:1474975)
at checkAndUpdateDirectiveInline (webpack:///./node_modules/@angular/core/fesm5/core.js?:22442:19)
at checkAndUpdateNodeInline (webpack:///./node_modules/@angular/core/fesm5/core.js?:23706:20)
at checkAndUpdateNode (webpack:///./node_modules/@angular/core/fesm5/core.js?:23668:16)
at prodCheckAndUpdateNode (webpack:///./node_modules/@angular/core/fesm5/core.js?:24209:5)
at Object.eval [as updateDirectives] (webpack:///./dist-server/main.854bb442d3bcd3a5191c.js?:1:1533278)
at Object.updateDirectives (webpack:///./node_modules/@angular/core/fesm5/core.js?:23997:72)
at checkAndUpdateView (webpack:///./node_modules/@angular/core/fesm5/core.js?:23650:14)
at callViewAction (webpack:///./node_modules/@angular/core/fesm5/core.js?:23891:21)
at execComponentViewsAction (webpack:///./node_modules/@angular/core/fesm5/core.js?:23833:13)
It seems like it has an issue with jQuery or $. I am sure that I have added jquery using npm install jquery
, and import the jquery in angular.json
"node_modules/jquery/dist/jquery.min.js"
If someone solved the problem, do let me know.
from ngx-owl-carousel.
As per https://www.npmjs.com/package/ngx-owl-carousel
You need to install script loader too.
npm install script-loader
It worked for me
I also have the issue showing Owl-Carousel in Angular 7.x project. I am actually working on Angular-Universal project.
After adding the Owl-Carousel in Angular-Universal and then run the
npm run ssr
, it will start node server to serve the angular pages. When I try to load the page, it shows below errorERROR ReferenceError: $ is not defined at OwlChild.WzYf.OwlChild.ngOnInit (webpack:///./dist-server/main.854bb442d3bcd3a5191c.js?:1:1474975) at checkAndUpdateDirectiveInline (webpack:///./node_modules/@angular/core/fesm5/core.js?:22442:19) at checkAndUpdateNodeInline (webpack:///./node_modules/@angular/core/fesm5/core.js?:23706:20) at checkAndUpdateNode (webpack:///./node_modules/@angular/core/fesm5/core.js?:23668:16) at prodCheckAndUpdateNode (webpack:///./node_modules/@angular/core/fesm5/core.js?:24209:5) at Object.eval [as updateDirectives] (webpack:///./dist-server/main.854bb442d3bcd3a5191c.js?:1:1533278) at Object.updateDirectives (webpack:///./node_modules/@angular/core/fesm5/core.js?:23997:72) at checkAndUpdateView (webpack:///./node_modules/@angular/core/fesm5/core.js?:23650:14) at callViewAction (webpack:///./node_modules/@angular/core/fesm5/core.js?:23891:21) at execComponentViewsAction (webpack:///./node_modules/@angular/core/fesm5/core.js?:23833:13)
It seems like it has an issue with jQuery or $. I am sure that I have added jquery using
npm install jquery
, and import the jquery in angular.json
"node_modules/jquery/dist/jquery.min.js"
If someone solved the problem, do let me know.
from ngx-owl-carousel.
Hi @RakeshPaiR, @junaidbinsarfraz ,
I am facing same issue you got any solution
Angular-Universal project
**How i implement and where after installed=> npm install script-loader **
ERROR ReferenceError: $ is not defined
at OwlChild.module.exports../node_modules/ngx-owl-carousel/src/owl-child.component.js.OwlChild.ngOnInit (/var/www/html/angular8new/dist/server.js:158539:48)
at checkAndUpdateDirectiveInline (/var/www/html/angular8new/dist/server.js:21621:19)
at checkAndUpdateNodeInline (/var/www/html/angular8new/dist/server.js:30019:20)
at checkAndUpdateNode (/var/www/html/angular8new/dist/server.js:29981:16)
at prodCheckAndUpdateNode (/var/www/html/angular8new/dist/server.js:30522:5)
at Object.updateDirectives (/var/www/html/angular8new/dist/server.js:158500:732)
at Object.updateDirectives (/var/www/html/angular8new/dist/server.js:30310:72)
at checkAndUpdateView (/var/www/html/angular8new/dist/server.js:29963:14)
at callViewAction (/var/www/html/angular8new/dist/server.js:30204:21)
at execComponentViewsAction (/var/www/html/angular8new/dist/server.js:30146:13)
ERROR ReferenceError: $ is not defined
at OwlChild.module.exports../node_modules/ngx-owl-carousel/src/owl-child.component.js.OwlChild.ngOnInit (/var/www/html/angular8new/dist/server.js:158539:48)
at checkAndUpdateDirectiveInline (/var/www/html/angular8new/dist/server.js:21621:19)
at checkAndUpdateNodeInline (/var/www/html/angular8new/dist/server.js:30019:20)
at checkAndUpdateNode (/var/www/html/angular8new/dist/server.js:29981:16)
at prodCheckAndUpdateNode (/var/www/html/angular8new/dist/server.js:30522:5)
at Object.updateDirectives (/var/www/html/angular8new/dist/server.js:158500:732)
at Object.updateDirectives (/var/www/html/angular8new/dist/server.js:30310:72)
at checkAndUpdateView (/var/www/html/angular8new/dist/server.js:29963:14)
at callViewAction (/var/www/html/angular8new/dist/server.js:30204:21)
at execComponentViewsAction (/var/www/html/angular8new/dist/server.js:30146:13)
from ngx-owl-carousel.
Related Issues (20)
- Cannot display images HOT 2
- Gulp: prod build issue with angular 2
- Get Direction of translate, translated
- Is this installation method same for angular 5? HOT 1
- I am Using ngx-owl-carousel, our client requirement is two rows sliding. is it possible can you please help on this HOT 1
- Reference to SliderOptions in Component doesn't work in Angular 6
- routerLink as well as click not working on cloned items when loop:true HOT 2
- how to attach event/callback? HOT 3
- Server Side Rendering Support HOT 4
- resize images size on windows resize
- item filter-search issue owl carousel angular 6/7
- For Dynamic received images array worked first time only.after click next tab for caurosel is not working
- Firefox issue for full width banner
- Owl carousel option lazy loading does not work correctly
- Ivy Support HOT 3
- Navigation jumps 2 slides on iPhone 6 & 8 in Safari
- TO: standard true
- need to support progress bar
- mouseDrag, touchDrag and pullDrag doesn't work
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-owl-carousel.