vivek9patel / vivek9patel.github.io

Personal portfolio website simulating Ubuntu 20.04, made using NEXT.js & tailwind CSS
https://vivek9patel.github.io/
MIT License
3.69k stars 584 forks source link

Error while executing "yarn build" #99

Open Shubham-Lal opened 1 year ago

Shubham-Lal commented 1 year ago

Executing "yarn build" returns a error:- Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db

I'm trying to figure it out for now. Will update y'all when it is fixed.🤞

Shubham-Lal commented 1 year ago

I did some research on this error and found that deleting yarn.lock and again executing command "yarn install" or simply "yarn" gets rid of this problem. But it is not a good solution according to this stackoverflow thread.

vivek9patel commented 1 year ago

Is this still relevant?

Shubham-Lal commented 1 year ago

Yes, the issue still persists. Here's the ss: yarn build

prestonzen commented 9 months ago

Error: Require GA_MEASUREMENT_ID

Build error occurred Error: Failed to collect page data for / at C:\Users\prestonzen\Downloads\vivek9patel.github.io-master (1)\vivek9patel.github.io-master\node_modules\next\dist\build\utils.js:1217:15 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { type: 'Error' } error Command failed with exit code 1.

Shubham-Lal commented 8 months ago

@prestonzen You need to register your app for Google Analytics and it will give you GA_MEASUREMENT_ID which you have to add it in .env file like this:

NEXT_PUBLIC_TRACKING_ID=G-XXXXXXXX