build error in netlify, but it can be built in local
skyline523 opened this issue · 2 comments
skyline523 commented
Describe the bug
on netlify, when rendering pages, error occur in /nav page: Cannot convert undefined or null to object. I think navs is empty, so i give it the {}
(Object.keys(projects || {})
). And other pages frontmatter render error, and i try deploying on netlify again, it work. but all pages renders frontmatter is wrong, like this.
Reproduction
https://github.com/skyline523/leet.me
System Info
System:
OS: Windows 11 10.0.22631
CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13400F
Memory: 4.52 GB / 15.85 GB
Binaries:
Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
pnpm: 9.7.0 - E:\personal\leet.me\node_modules\.bin\pnpm.CMD
Browsers:
Edge: Chromium (127.0.2651.74)
Internet Explorer: 11.0.22621.3527
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Contributions
- I am willing to submit a PR to fix this issue
- I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
skyline523 commented
https://leetme.netlify.app/ can see effect that given Object.keys(projects || {})
, nav page is very confusing
antfu commented
I am sorry this repo is "just open source". I don't provide any help for your fork.