Vercel build fails
Closed this issue · 0 comments
huyng12 commented
Due to case sensitive on Linux (OS), Next.js can not build distribution.
It can be resolved by rename Gilroy font to lowercase. (Tested on Centos OS)
03:43:25.231 | Failed to compile.
03:43:25.232 | ./node_modules/next/dist/compiled/css-loader/cjs.js??ruleSet[1].rules[2].oneOf[5].use[1]!./node_modules/next/dist/compiled/postcss-loader/cjs.js??ruleSet[1].rules[2].oneOf[5].use[2]!./node_modules/@pixiepkg/core/font/gilroy.css
03:43:25.232 | Error: Can't resolve './Gilroy/XLight.otf' in '/vercel/path0/node_modules/@pixiepkg/core/font'
03:43:25.232 | > Build error occurred
03:43:25.233 | Error: > Build failed because of webpack errors
03:43:25.233 | at /vercel/path0/node_modules/next/dist/build/index.js:15:924
03:43:25.233 | at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/telemetry/trace/trace.js:6:584)
03:43:25.291 | error Command failed with exit code 1.
03:43:25.291 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
03:43:25.313 | Error: Command "yarn run build" exited with 1