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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production build failing on Vercel since last 24 hrs, though build is success in my local #43359

Closed
de-shine opened this issue Jul 4, 2023 · 2 comments

Comments

@de-shine
Copy link

de-shine commented Jul 4, 2023

Reproduction link

https://vercel.com/my-project/my-project-app/{build-id}

Steps to reproduce

On Vercel, my next js project build has started failing suddenly since last 24 hrs with "yarn run build" cmd, however in my local the build is successful.

Error log:

...
......
Detected Next.js version: 13.4.8
Running "yarn run build"
yarn run v1.22.17
$ next build

  • info Loaded env from /vercel/path0/.env.production
  • info Loaded env from /vercel/path0/.env
    Attention: Next.js now collects completely anonymous telemetry regarding usage.
    This information is used to shape Next.js' roadmap and prioritize features.
    You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
    https://nextjs.org/telemetry
  • info Linting and checking validity of types...
  • info Creating an optimized production build...
    Failed to compile.
    ./components/AvatarBox.js
    Module not found: Can't resolve 'antd/es/Avatar'

The component code I am using to import Avatar:

import { Avatar } from 'antd';

const AvatarBox = ({ children, size, dataItem }) => {
return (


<Avatar size={size} src={dataItem.profile_images[0].url} onClick={() => alert("HII")}/>
{children}

)
}

export default AvatarBox

What is expected?

Build should get successful as it used to happen before 24 hrs.

What is actually happening?

Build is failing showing error for all the antd components with above error

Environment Info
antd 5.6.4
React 18.2.0
System Vercel (next js deployment)
Browser All broswer
@MadCcc
Copy link
Member

MadCcc commented Jul 4, 2023

It's bug of nextjs v13.4.8, and still not fixed: vercel/next.js#52031

@MadCcc MadCcc closed this as completed Jul 4, 2023
@de-shine
Copy link
Author

de-shine commented Jul 4, 2023

Thanks.

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

No branches or pull requests

2 participants