vue-shepherd icon indicating copy to clipboard operation
vue-shepherd copied to clipboard

Error: process is not define

Open Piyush-linux opened this issue 1 year ago • 2 comments

Problem

  • while using vue-shepherd, it gives console error of process is not defined

Screen Shot

Screenshot_2024-05-23-06-42-17_1920x1080 Screenshot_2024-05-23-06-42-34_1920x1080

Piyush-linux avatar May 23 '24 01:05 Piyush-linux

I just had the same issue here and I was able to solve this by defining the ES_BUILD environment variable in my quasar.conf.js file.

From my understanding this error is more an issue of your dev setup than of the library here. But it took me quite a while to find out.

I've just set the ES_BUILD variable to null. I fount a hint to this solution here: https://github.com/quasarframework/quasar/discussions/9967

I assume there will be something similar in the Vite.js configuration.

vkodocha avatar Jun 22 '24 06:06 vkodocha

I don't use quasar but I encountered the same issue. I managed to fix it by updating my vite.config.mjs as such

export default defineConfig(({ mode }) => ({
  define: {
    // compatibility with some dependencies
    "process.env": {},
  },
  ...
}

This seems a bit hacky but it does the job correctly.

tchapeaux avatar Jun 25 '24 09:06 tchapeaux

Duplicate, see https://github.com/shipshapecode/vue-shepherd/issues/174#issuecomment-1400512294

RobbieTheWagner avatar Sep 16 '24 01:09 RobbieTheWagner