BokehShader is an addon, and must be imported explicitly, see Installation#Addons.
import { BokehShader } from 'three/addons/shaders/BokehShader.js';
Depth-of-field shader with bokeh ported from GLSL shader by Martins Upitis.
examples/jsm/shaders/BokehShader.js