We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm getting this error when I'm using the owl carousel plugin in my laravel 9 project.
Uncaught TypeError: Cannot read properties of undefined (reading 'fn') at owl.carousel.js:1718:4 at owl.carousel.js:1755:1
this is how I installed it npm install --save owl.carousel then in app.js I added
npm install --save owl.carousel
import 'owl.carousel/dist/assets/owl.carousel.css'; import 'owl.carousel';
then
npm run build nom run dev
this is my app.js file
import 'owl.carousel'; import * as bootstrap from 'bootstrap'; import '../sass/app.scss'; import jQuery from 'jquery'; window.$ = jQuery; window.bootstrap = bootstrap; $(document).ready(function() { // codes });
this is my vite.config.js
import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; import path from 'path'; export default defineConfig({ plugins: [ laravel({ input: [ 'resources/sass/app-rtl.scss', 'resources/sass/app.scss', 'resources/js/app.js', ], refresh: true, }), ], resolve: { alias: { '~bootstrap': path.resolve(__dirname, 'node_modules/bootstrap'), '$': 'jQuery', }, }, });
How can I solve this issue ?? I did search on the web nothings works for me thanks
The text was updated successfully, but these errors were encountered:
Did you solve this at all?
Sorry, something went wrong.
Yes I did. this is how
npm install @rollup/plugin-inject --save-dev
import inject from '@rollup/plugin-inject';
plugins: [ ... inject({ $: 'jquery', jQuery: 'jquery', 'window.jQuery': 'jquery', }), ],
No branches or pull requests
I'm getting this error when I'm using the owl carousel plugin in my laravel 9 project.
Uncaught TypeError: Cannot read properties of undefined (reading 'fn') at owl.carousel.js:1718:4 at owl.carousel.js:1755:1
this is how I installed it
npm install --save owl.carousel
then in app.js I added
then
this is my app.js file
this is my vite.config.js
How can I solve this issue ?? I did search on the web nothings works for me thanks
The text was updated successfully, but these errors were encountered: