Vercel deployment is failing with the latest version(2.0.1)

Open
#207 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
react, typescript
Domain
build-system

Research direction

Start by reproducing npm run build with @vercel/analytics 2.0.1 in the reported React 18.3.1 setup, then inspect the Rollup error around the shown route expression. Done means the project builds and deploys successfully without this failure.

Written by the indexing model from the issue text.

Description

Hi team,
I am using the 2.0.1 version of @vercel/analytics package, and the vercel deployment is failing. The error details are below.

package version: 2.0.1
Project framework : React (18.3.1)

Error:

207: ...props.route !== void 0 && { disableAutoTrack: true },
at getRollupError (file:///vercel/path0/node_modules/rollup/dist/es/shared/parseAst.js:317:41)
at error (file:///vercel/path0/node_modules/rollup/dist/es/shared/parseAst.js:313:42)
at Module.error (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:17396:16)
at Module.traceVariable (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:17829:29)
at ModuleScope.findVariable (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:15419:39)
at ReturnValueScope.findVariable (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:5684:38)
at FunctionBodyScope.findVariable (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:5684:38)
at Identifier.bind (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:5451:40)
at CallExpression.bind (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:2833:23)
at CallExpression.bind (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:12528:15)
Error: Command "npm run build" exited with 1

Can someone help to look into this.
Any help is appreciated.

Dominant language
TypeScript
Stars
515
Forks
52
Avg merge
1h 16m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vercel/analytics

All issues in vercel/analytics

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.