Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

[Vue warn]: Error in beforeCreate hook: "ReferenceError: btoa is not defined" #27

Open
illustratordavid opened this issue Jan 29, 2021 · 0 comments

Comments

@illustratordavid
Copy link

illustratordavid commented Jan 29, 2021

I am seeing this error on page load when used in Nuxt

ERROR [Vue warn]: Error in beforeCreate hook: "ReferenceError: btoa is not defined"

node_modules\vue-tailwind-picker\dist\vue-tailwind-picker.umd.js

      if (css.map) {
          // https://developer.chrome.com/devtools/docs/javascript-debugging
          // this makes source maps inside style tags work properly in Chrome
          code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
          // http://stackoverflow.com/a/26603875
          code +=
              '\n/*# sourceMappingURL=data:application/json;base64,' +
                  btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
                  ' */';
      }                                                                                                                                                                
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant