Cannot recreate DOF2 example shader general

I’m trying to use a similar approach as the DOF2 example for a project. three.js examples

However, the postprocessing doesn’t work — the screen looks black.

I copied the code and files from the original example line by line. Here is the code:

On the Controls panel, disable the first bool to disable postprocessing. The scene is visible. When it’s enabled, the screen is black.

Any clues as to what’s going on?