[Vuejs]-Variable still not defined even after adding external JS in VUE component

3👍

Okay I’m not familiar with Vue, I use React, but normally I would be able to add the script link in the index.html under public folder. Then when everything’s built it will be there.

Best option I think would be to install it via npmnpm i marked, then import marked from 'marked' – why not do it this way?

👤Joe

Leave a comment