Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while executing "yarn build" #99

Open
Shubham-Lal opened this issue Jan 19, 2023 · 5 comments
Open

Error while executing "yarn build" #99

Shubham-Lal opened this issue Jan 19, 2023 · 5 comments

Comments

@Shubham-Lal
Copy link
Contributor

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
Copy link
Contributor Author

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. Try solving it on your own.

@vivek9patel
Copy link
Owner

Is this still relevant?

@Shubham-Lal
Copy link
Contributor Author

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

@prestonzen
Copy link

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
Copy link
Contributor Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants