Can warnings be ignored?February 8, 2020 at 3:08am
Still only a few months into learning gatsby/reactjs, it seems every starter or theme I try gives warnings about core-js@ below "3" and sometimes a host of other ones. I then end up manually installing what needs upgrading (using yarn). I often laugh since the gurus I see on Youtube and elsewhere seem to do an initial develop with no warnings surfacing. On Ubuntu 19.10 with latest stable node.js, gatsby, gatsby-cli, etc. Am I missing something?
February 8, 2020 at 3:17am
Hi Vince. As for me (and my starter), all modules were up-to-date when I published it. I'd like to take some time and update all modules but I haven't done so. (sorry)
My starter has a full suite of tests in place. So, in theory, you could: 1) Clone it. 2) Run
yarn(to populate the node modules folder) 3) Run
yarn test(to confirm that all unit tests are passing) 4) Run
yarn test:e2e(to confirm that all end-to-end tests are passing) (NOTE: look to the readme or the package.json to check those exact commands) 5) Then update modules in package.json to their latest versions, run
yarnagain, and run all tests again.
I make no guarantees that it will be that smooth.
But my point is, for any starter, if the modules are out of date you must either leave them as is, or update their version numbers and run tests (if there are any).
Your post is a reminder (to me) that I ought to do a better job keeping my start up-to-date. https://github.com/davidsabine/gatsby-starter