4

I bump into ReferenceError: process is not defined error for my Quasar 2 application deployed to firebase. Howver, running it locally with quasar dev does not see the error. Any advice and insight is appreciated.

Kok How Teh
  • 3,298
  • 6
  • 47
  • 85

2 Answers2

1

This happened to me as well after I accidentally ran "quasar build" in my functions directory rather than in my root directory then deployed that.

Easy way to test this is run the build command in the root directory and check if it fixes the error on the firebase hosting emulator (usually localhost:5000) before deploy.

Hope this helps anyone else who has my issue.

hbnewleaf
  • 23
  • 5
0

Solved by installing NPM process package.

Kok How Teh
  • 3,298
  • 6
  • 47
  • 85
  • FWIW, I has this issue which was caused by invalid import statements at the top of the Vue SFC pointed to by router.js, the imports has been added automatically by VS Code, removing these removed the errror. – user3094755 Apr 03 '22 at 21:22