PBRMaterial and missing shaders

It is hard to say not seeing your imports, but - probably - if you import only PBRMaterial, in some conditions you need to import also Standard material. See here - StandardMaterial needs to be imported - #5 by RaananW
Also, make sure that all imports have the same version. In some error cases one needs to deleted node_modules folder and perform npm i once more.