You are using an older version of AG Grid. To upgrade, please see the
migration guide.
Full Error Text
Changing the column pinning status is not allowed with domLayout='print'
To show this error text in the dev console, import the ValidationModule.