Merge 2 geometries error "All geometries must have compatible attributes"

Try it with:

ring.deleteAttribute( 'uv' );

Keep in mind that the uv attribute represents texture coordinates. Without them, it won’t be possible to apply textures to your geometry.