Git Product home page Git Product logo

Comments (6)

SimoTod avatar SimoTod commented on May 27, 2024

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.

ralphjsmit avatar ralphjsmit commented on May 27, 2024

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.

SimoTod avatar SimoTod commented on May 27, 2024

https://github.com/alpine-collective/toolkit/blob/main/packages/%24screen/README.md#npm

from alpine-magic-helpers.

ralphjsmit avatar ralphjsmit commented on May 27, 2024

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.

SimoTod avatar SimoTod commented on May 27, 2024

πŸ‘ I'll keep it open for now

from alpine-magic-helpers.

drdogbot7 avatar drdogbot7 commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.