Closed RandomGamingDev closed 4 months ago
It might be possible to make npm run build
work directly after install so we don't need to necessarily recommend running npm test
first. I can look into it once I get some time.
It might be possible to make
npm run build
work directly after install so we don't need to necessarily recommend runningnpm test
first. I can look into it once I get some time.
It's been quite a bit of time from you're original comment. Have you already tested whether it's possible on certain setups?
On the setups I've tested it doesn't seem to work since npm run build
requires a file generated by calling npm test
.
Fixed with https://github.com/processing/p5.js/commit/f14a45e3aa7324329711506fdccf391c6b67d39e
@RandomGamingDev In the future it can help greatly if you can provide more information around replication and expected vs actual output, that way we don't need to spend time on replication. Eg. the relevant error message here is
Fatal error: Cannot find module '../../../docs/parameterData.json' from '/home/limzykenneth/Documents/p5.js/src/core/friendly_errors'
Just knowing this narrows down the fix faster. Thanks.
Fixed with f14a45e
@RandomGamingDev In the future it can help greatly if you can provide more information around replication and expected vs actual output, that way we don't need to spend time on replication. Eg. the relevant error message here is
Fatal error: Cannot find module '../../../docs/parameterData.json' from '/home/limzykenneth/Documents/p5.js/src/core/friendly_errors'
Just knowing this narrows down the fix faster. Thanks.
That's indeed the error. Sorry for not providing more information and thanks for the fix.
Resolves #6828
Changes:
Changes the wording to clarify the fact that
npm test
has to be ran once before runningnpm run build
.PR Checklist
npm run lint
passes