There is a problem with building a project .
The package version is as follows - “@amplitude/analytics-browser”: “^2.9.3”.
We are using next.js (app router)
During the project build the following error appears because of which we can't build the project -
Amplitude Logger tError]: Failed to set cookie for key: AMP_TEST. Error: Cannot set properties of undefined (setting 'cookie')
Can anyone help solve this problem?