the branch deploy completes successfully and logs end with
site is live
the production deploy fails because webpack (the code bundler)
Cannot find module 'extract-css-chunks-webpack-plugin'
The problem is that each is exactly the same code, exactly the same commit. Literally, this is the HEAD, wherein
master is the production branch and
feature/svelte is the branch that deploys successfully:
commit b4a1368fb17f115e49712f3a79541cf7fe3fde5e (HEAD -> master, origin/master, origin/feature/svelte, feature/svelte)
Needless to say, the missing module is in the package manifest
Is there is some difference in the environment between the two that I should be aware of?
Update: I cleared the cache and redeployed the failing build. Now it’s failing for a different, but similar, reason: the environment cannot find a package that is definitely in the manifest.
(in this case it’s
rimraf, platform-neutral node command that removes directories)
12:33:12 PM: > rimraf public && rimraf functions 12:33:12 PM: sh: 1: rimraf: not found
(I deleted an earlier question “Branch Deploy” versus “Deploy Preview” because I was conflating this specific issue with another one. My apologies to @futuregerald who answered there. I never did get to see your answer!)