I sat down to upgrade this blog's dependencies. Ordinary work: astro was one
minor behind, and @astrojs/mdx was a whole major behind β I had 7.0.5,
the registry had 8.1.3. Before touching anything I opened the release notes,
as I always do. Astro's 8.0.0 entry says:
If you haven't explicitly installed a Markdown processor, you don't need to
do anything.
I hadn't installed one. So for me this was a no-action major. I was going to
run the upgrade and move on.
I didn't. Because I tried the upgrade in a scratch directory first, and the
first step of my publishing pipeline died before reading its second line:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'js-yaml' imported from .../scripts/render-article.mjs
Enter fullscreen mode
Exit fullscreen mode
js-yaml is not in my package.json . None of the eleven third-party
packages that file imports is; js-yaml only blows up first because it comes
first.β¦