moollaza / repo-remover

A web app that helps you archive and delete old/unused repos, quickly and easily.

Home Page:https://reporemover.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VUE_APP_FATHOM_SITE_ID bug on `yarn serve`

yagoazedias opened this issue · comments

Describe the bug
A bug appears on my startup application, Template execution failed: ReferenceError: VUE_APP_FATHOM_SITE_ID is not defined

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo onto your machine
  2. Install the node version v10.19.0 with nvm
  3. Execute with yarn serve
  4. See error

Expected behavior
Screenshots
You should see something like the image below
Screen Shot 2020-07-27 at 21 05 12

Desktop (please complete the following information):

  • OS: MacOS - Catalina 10.15.6 (19G73)
  • Version v10.19.0

Additional context
I'll keep trying to execute, if for some reason i find out what is going on I'll close the issue or create a PR 👍

@yagoazedias thanks for posting this.

I guess you'll need to define that ENV variable in order for this to work. I suppose I could put a .env file in the repo with a blank value for that. You could do the same or just run VUE_APP_FATHOM_SITE_ID='' yarn serve

Alternatively, you could also remove the bit of HTML that references that in index.html (at the bottom). It's only used to pass along the Fathom Analytics Site ID to a script tag

Dear,

I created the .env file and added :

VUE_APP_FATHOM_SITE_ID='';

and it fixes the issue.

Best Regards

Youssef

or remove that html in /public that worked too.

well that didn't work as when I went to delete the app posted
Failed to delete "logger": fathom is not defined

I take it back. They were deleted despite the error message. All an all this Fathom analytics was a distraction. Is it really necessary? Maybe you can make it optional and off by default.

@dkebler I've pushed an update. Fathom should be ignored in dev mode.