Closed rdcm closed 6 years ago
I have the same issue, seems this is the cause, still, https://github.com/fgnass/spin.js/issues/323
I had to use window.Spinner = require('../node_modules/spin.js/spin.js'); but in my case it is for leaflet spinner in vue app.
I'am trying use spin.js with typings in my app, but when i try create spinner instance, my componnet throw exception:
ReferenceError: Spinner is not defined
Spin.js imported in componnet like this
import "spin.js";
"spin.js": "2.3.2",
"@types/spin": "2.3.30",
Code in component:
What i'am doing wrong?