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

Stray files in content directory, cause build to fail #2608

Open
oripka opened this issue Apr 10, 2024 · 0 comments
Open

Stray files in content directory, cause build to fail #2608

oripka opened this issue Apr 10, 2024 · 0 comments

Comments

@oripka
Copy link

oripka commented Apr 10, 2024

I had a stray png in the content dir and it caused by production build to fail, dev was fine.

I suggest changing this line(, to check if item is defined)

const dirConfig = db.find((item: any) => item._path === joinURL(path, '_dir'))

to

const dirConfig = db.find((item: any) => item?._path === joinURL(path, '_dir'))

const dirConfig = db.find((item: any) => item._path === joinURL(path, '_dir'))

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

No branches or pull requests

1 participant