Window is undefined error, when loading node_module package in a component

I am trying to use pickr package ( a color picker library) in my nuxt.js app , at import time it is providing error called window is undefined here is code: