Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fwartner's avatar

Make use of external js-libs in Spark

Hey everyone!

How do i make use of js-libs like https://github.com/Nickersoft/push.js ? I was trying to require it in my app.js but i cannot bring it to work.. =/

0 likes
3 replies
garethdaine's avatar

Have you installed it via NPM and how are you requiring it in your component?

fwartner's avatar

I did both.. Bot for some reason, the lib isn´t accessable.

garethdaine's avatar

But how are you requiring it? Can you show the code?

Also, how are you trying to access/use it in your code?

Please or to participate in this conversation.