KABBOUCHI / vue-tippy

VueJS Tooltip powered by Tippy.js
https://vue-tippy.netlify.app
MIT License
726 stars 87 forks source link

Uncaught ReferenceError: process is not defined (since v6.0.0-alpha.36) #230

Closed queengooborg closed 2 years ago

queengooborg commented 2 years ago

After upgrading all of my dependencies to the latest versions, I ran into an issue of Vue not loading due to this plugin crashing. I ran into the following issue:

vue-tippy.mjs:2151 Uncaught ReferenceError: process is not defined
    at vue-tippy.mjs:2151:1
    at bundle.js:4:77
    at bundle.js:5:3

This issue seemed to start occurring in v6 alpha 36 and still persists in alpha 43, with the following lines:

var visitedMessages;

if (process.env.NODE_ENV !== "production") { // This line
  resetVisitedMessages();
}

function resetVisitedMessages() {
  visitedMessages = new Set();
}
KABBOUCHI commented 2 years ago

tippy.js is using process in the .mjs build

I replaced them when building vue-tippy.mjs, plz can u try v6.0.0-alpha.44?

queengooborg commented 2 years ago

Looks like that did the trick, alpha 44 is functioning as intended -- thanks for the quick fix!