vercel / next.js

The React Framework
https://nextjs.org
MIT License
126.05k stars 26.88k forks source link

Build doesnt working on FreeBSD #59994

Closed patrykluba closed 9 months ago

patrykluba commented 9 months ago

Link to the code that reproduces this issue

.

To Reproduce

  1. yarn build / npm run bui;d

Current vs. Expected behavior

Current: App doesnt build. Excepted: App build successfully.

Verify canary release

Provide environment information

Operating System:
  Platform: freebsd
  Arch: x64
  Version: FreeBSD 13.2-RELEASE #0 releng/13.2-n254617-525ecfdad597-dirty: Wed May 31 19:03:43 CEST 2023     
Binaries:
  Node: 20.10.0
  npm: 9.6.6
  Yarn: 1.22.19
  pnpm: N/A
Relevant Packages:
  next: 14.0.4
  eslint-config-next: 14.0.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.2.2
Next.js Config:
  output: standalone

Which area(s) are affected? (Select all that apply)

Operating System (Windows, MacOS, Linux), Package manager (npm, pnpm, Yarn), SWC minifier (swcMinify: true)

Additional context

Error log:

[user@s62]:<~/test.com/fe>$ npm run build

> new-fe@0.1.0 build
> next build

   ▲ Next.js 14.0.4

   Downloading swc package @next/swc-freebsd-x64...
 ⨯ Failed to download swc package from https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-14.0.4.tgz
unhandledRejection Error: request failed with status 404

Even when I added:

{
"presets": ["next/babel"]
}

to .babelrc and swcMinify: false in next.config.js build still not working

dependencies package.json:

"scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@emotion/react": "^11.11.1",
    "@emotion/styled": "^11.11.0",
    "@fontsource/open-sans": "^5.0.20",
    "@fontsource/outfit": "^5.0.8",
    "@fontsource/roboto": "^5.0.3",
    "@hookform/resolvers": "^3.1.1",
    "@mui/icons-material": "^5.11.16",
    "@mui/material": "^5.13.5",
    "axios": "^1.4.0",
    "dayjs": "^1.11.10",
    "eslint": "8.54.0",
    "eslint-config-next": "14.0.3",
    "next": "14.0.4",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-hook-form": "^7.45.0",
    "react-query": "^3.39.3",
    "react-router-dom": "^6.21.1",
    "typescript": "5.2.2",
    "yup": "^1.2.0"
  },
  "devDependencies": {
    "@babel/core": "^7.22.5",
    "@babel/eslint-parser": "^7.22.5",
    "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
    "@testing-library/jest-dom": "^5.16.5",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^13.5.0",
    "@types/jest": "^27.5.2",
    "@types/node": "20.9.2",
    "@types/react": "^18.2.0",
    "@types/react-dom": "^18.2.0",
    "@typescript-eslint/eslint-plugin": "^5.60.0",
    "@typescript-eslint/parser": "^5.60.0",
    "sass": "^1.63.4"
  }
github-actions[bot] commented 9 months ago

We could not detect a valid reproduction link. Make sure to follow the bug report template carefully.

Why was this issue closed?

To be able to investigate, we need access to a reproduction to identify what triggered the issue. We need a link to a public GitHub repository (template for App Router, template for Pages Router), but you can also use these templates: CodeSandbox: App Router or CodeSandbox: Pages Router.

The bug template that you filled out has a section called "Link to the code that reproduces this issue", which is where you should provide the link to the reproduction.

What should I do?

Depending on the reason the issue was closed, you can do the following:

In general, assume that we should not go through a lengthy onboarding process at your company code only to be able to verify an issue.

My repository is private and cannot make it public

In most cases, a private repo will not be a sufficient minimal reproduction, as this codebase might contain a lot of unrelated parts that would make our investigation take longer. Please do not make it public. Instead, create a new repository using the templates above, adding the relevant code to reproduce the issue. Common things to look out for:

I did not open this issue, but it is relevant to me, what can I do to help?

Anyone experiencing the same issue is welcome to provide a minimal reproduction following the above steps by opening a new issue.

I think my reproduction is good enough, why aren't you looking into it quickly?

We look into every Next.js issue and constantly monitor open issues for new comments.

However, sometimes we might miss one or two due to the popularity/high traffic of the repository. We apologize, and kindly ask you to refrain from tagging core maintainers, as that will usually not result in increased priority.

Upvoting issues to show your interest will help us prioritize and address them as quickly as possible. That said, every issue is important to us, and if an issue gets closed by accident, we encourage you to open a new one linking to the old issue and we will look into it.

Useful Resources