-
I want to see if I can use Solid Start with jQuery Terminal (my library) so I can add this to the documentation. The problem is that when I want to use the standard code that I use everywhere I get an error that import $ from 'jquery';
import terminal from 'jquery.terminal';
import 'jquery.terminal/css/jquery.terminal.min.css';
terminal(window, $); I use the starter ( I added the above code into app.tsx. So the question is how to use JavaScript DOM libraries with Solid Start? This code probably runs on the server since Solid Start use SSR, so how can I mark the code or a file as a client side? |
Beta Was this translation helpful? Give feedback.
Answered by
atk
May 10, 2024
Replies: 1 comment 6 replies
-
Use |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
jcubic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
!isServer
to only run your code on the client.