Home

Issue: 338

Using a plain JS library in Vue - window is not defined

[issue link]

(quesion which might be an issue) We have a CDN of useful plain JS functionalities (opening/closing a modal, …) that we would like to use in our Nuxt project. When including the CDN (//dij151upo6vad.cloudfront.net/2.latest/js/vlaanderen-ui.js) we instantly get window is not defined.

So my question: Is it possible to use a plain JS library in Nuxt/Vue in general?

This question is available on Nuxt.js community (#c290)