Comments (7)
I confirm that setting the mode
property to 'spa'
(instead of mode: 'universal'
), in nuxt.config.js
, solves the issue with dropdowns.
from kutty.
Hey, is kutty updated to the latest 0.2.0
version?
And if that didn't work, did you properly register the plugin in Nuxt config? example here
from kutty.
Yes, kutty is on the latest version. Regarding the plugin, I'm registering the script (also Alpine) in nuxt.config.js
file, like this:
export default {
...,
script: [
{
src:
'https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js',
body: true,
},
{
src:
'https://cdn.jsdelivr.net/npm/kutty@latest/dist/kutty.min.js',
body: true,
},
],
...
}
from kutty.
alpine is already bundled with the kutty js, maybe that's the problem, can you remove the alpine script there and check?
from kutty.
I removed de alpine script but the error still persist. This the full error:
Uncaught ReferenceError: dropdown is not defined
at eval (eval at l (kutty.min.js:1), <anonymous>:3:36)
at l (kutty.min.js:1)
at new he (kutty.min.js:1)
at Object.initializeComponent (kutty.min.js:1)
at kutty.min.js:1
at kutty.min.js:1
at NodeList.forEach (<anonymous>)
at Object.discoverComponents (kutty.min.js:1)
at Object.start (kutty.min.js:1)
Other components the use JS, such as dialogs, are working like a charm.
from kutty.
No idea what the error is, can you share full code in a minimal repo? It will help me identify why this error occurs
from kutty.
Hi. I've just created a minimal repo (where the issue can be reproduced) and added you as a collaborator.
Again, thank you for your help.
from kutty.
Related Issues (20)
- Error in tailwinds-intellisense HOT 8
- Can Kutty be used with Vite? HOT 2
- Open dialog creates scroll bar HOT 10
- Tooltips show up twice after some time HOT 2
- Page with multiple dialogs HOT 2
- Choose expand direction of dropdown HOT 1
- Not compatible with Windicss HOT 1
- No Badge class styles HOT 5
- Can't click buttons in drawer on mobile Safari HOT 2
- Support for Alpine 3.0 HOT 1
- Support for Apline.js 3.x.x? HOT 2
- No issue, Just lot of love. HOT 1
- error on collapse HOT 1
- Suggestion: Decouple framework specific aspects. HOT 2
- Not working in tailwind.config.js Says could not find a declaration for module kutty HOT 4
- Update tailwindcss to latest HOT 1
- 97 dependancies
- Is Alpine V3 Support Still Coming?
- autoprefixer warning
- Site Link broken HOT 1
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 kutty.