My client-side js doesn't seem to be working with pug for some reason?


#1

#2

I don’t speak pug, but you have a script tag in shortened.pug, and your app seems to be using form.pug. I think you just need to add it to the other file.


#3

The script is for shortened.pug not form.pug. Both inline and separated client side JavaScript don’t work


#4

It works fine when not wrapped in the database calls, so I’d suggest looking into that: https://daffodil-sword.glitch.me/