You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using svelteKit with bootstrap and i am trying to, lets say, open a modal via javascript. The below works but i get complaints from typescript (bootstrap does not exist). If i try to import bootstrap (import bootstrap from 'bootstrap') then i'll get the document is not defined error when it tries to run on the server. Right now i am including bootstrap as a CDN on my main html page.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using svelteKit with bootstrap and i am trying to, lets say, open a modal via javascript. The below works but i get complaints from typescript (
bootstrap does not exist
). If i try to import bootstrap (import bootstrap from 'bootstrap'
) then i'll get thedocument is not defined
error when it tries to run on the server. Right now i am including bootstrap as a CDN on my main html page.Beta Was this translation helpful? Give feedback.
All reactions