commenthol / date-holidays

worldwide holidays
https://commenthol.github.io/date-holidays/
Other
907 stars 234 forks source link

Documentation Issue: Missing data.js File in Build Instructions #467

Closed tristdrum closed 3 months ago

tristdrum commented 3 months ago

Hello date-holidays maintainers,

I hope you're doing well. I've recently attempted to contribute to the date-holidays project by following the instructions outlined in the CONTRIBUTING.md file. However, I encountered a build issue due to a missing data.js file that seems to be referenced in the project.

Issue Description:

During the build process, after running npm run build, Rollup throws an error indicating it could not resolve "./data.js" from "src/Holidays.js". Upon further inspection, I realized there is no mention of the data.js file in the contributing guidelines, nor does such a file exist in the repository.

Error Message:

[!] RollupError: Could not resolve "./data.js" from "src/Holidays.js"

Expected Behavior:

The build process completes without errors, allowing contributors to test their changes locally before submitting a pull request.

Suggested Actions:

I believe that addressing this issue will make the contributing process smoother for future contributors. Thank you for your attention to this matter and for maintaining such a valuable project. I look forward to your guidance on how to proceed.

Best regards, @tristdrum

tristdrum commented 3 months ago

Hi @commenthol!

I've just submitted my second PR (and hopefully learnt my lessons from the first one) but cannot test locally because of this issue. 🙈

Thank you 🙏

commenthol commented 3 months ago

@tristdrum You are right. The first time the data.js file is not there. Try running npm run yaml before npm run build that's it. Will take care on a PR which solves this.

tristdrum commented 3 months ago

@commenthol thank you for the help, and the tireless contributions!

I appreciate you!