Comments (6)
Thanks for the heads up. I'll have a look tomorrow. P.s. If you only need $screen, you can try to install only that helper.
from alpine-magic-helpers.
Thanks! Could you point me to some documentation or sth about installing the screen and scroll helper?
(It was quite difficult via Google/npm to find the right repo(s) with the correct version and documentation..)
from alpine-magic-helpers.
https://github.com/alpine-collective/toolkit/blob/main/packages/%24screen/README.md#npm
from alpine-magic-helpers.
Awesome man, that works! Thanks! Didn't figure out that the names in the table of the main readme were clickableπ€―
I installed the plugins and everything works now, so you could close this issue (or keep it open if you want to doublecheck the above issue).
from alpine-magic-helpers.
π I'll keep it open for now
from alpine-magic-helpers.
This seems to be an issue with the Interval plugin. I can import all of the other packages without any errors.
import Alpine from 'alpinejs';
import Dbg from '@alpine-collective/toolkit-dbg';
import Range from '@alpine-collective/toolkit-range';
import Screen from '@alpine-collective/toolkit-screen';
import Scroll from '@alpine-collective/toolkit-scroll';
import Truncate from '@alpine-collective/toolkit-truncate';
Alpine.plugin(Dbg);
Alpine.plugin(Range);
Alpine.plugin(Screen);
Alpine.plugin(Scroll);
Alpine.plugin(Truncate);
Alpine.start();
β¦ but I get errors when I try to import the whole toolkit or just Inverval
import Alpine from 'alpinejs';
import Interval from '@alpine-collective/toolkit-interval';
Alpine.plugin(Interval);
Alpine.start();
ERROR: Uncaught TypeError: callback is not a function
import Alpine from 'alpinejs';
import Toolkit from '@alpine-collective/toolkit';
Alpine.plugin(Toolkit);
Alpine.start();
ERROR: Uncaught TypeError: callback is not a function
from alpine-magic-helpers.
Related Issues (20)
- $get and $post are not defined HOT 2
- autoIntervalTest in $interval doesn't resume/restart properly HOT 11
- Test failing with latest Alpine version HOT 3
- Using $parent in for loop data that has been fetched (to be eventually used in an interval) HOT 9
- iterator not working in table? HOT 2
- $parent not working with x-for HOT 6
- Problem using $scroll with $watch
- Hi Support AlpineJS V3 alpine-collective..? HOT 16
- RFC: Adding a $select magic helper HOT 4
- Scroll not working when loaded from another livewire component HOT 3
- Seems like $scroll smooth is not smooth anymore? HOT 4
- Missing source of script tag in installation-guide? HOT 1
- scroll not working in alpine.js v3 HOT 1
- $scroll produces promise error HOT 2
- [Question] Finding unused translations HOT 1
- Fallback for missing translations HOT 4
- Installation suggestion is incorrect
- [V3] Installation suggestion incorrect? HOT 1
- Cannot install 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 alpine-magic-helpers.