After migration from Sitecore 8.2 Update-5 to Sitecore 9 Update-1 I see JavaScript error in Experience Editor mode.
For example:
I have a content page. Under content page I'm storing datasource items. Content page has some components which are using these datasource items. After changing datasource data in Experience Editor and clicking Save button I see error in browser console (Chrome, IE, FF):
> 16349168387717799575.JS:957 Uncaught TypeError: Cannot read property 'context' of undefined
> at Object.showPublishAffectedPagesNotification (16349168387717799575.JS:957)
> at 16349168387717799575.JS:939
> at ExperienceEditor.js:142
> at Object.onRequestProcessorSuccessCallback (ExperienceEditor.js:1015)
> at Object.success (ExperienceEditor.js:990)
> at fire (jquery-2.1.1.js:3073)
> at Object.fireWith [as resolveWith] (jquery-2.1.1.js:3185)
> at done (jquery-2.1.1.js:8251)
> at XMLHttpRequest.<anonymous> (jquery-2.1.1.js:8598)
> at Object.send (jquery-2.1.1.js:8623)
Please, help me to resolve this issue.