Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

all.js throwing an error

Farzad Qasim
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 18, 2017
 

I've added all.js in a script tag locally and its throwing this error

 

all-debug.js:2615 Uncaught TypeError: Object.defineProperty called on non-object
    at Function.defineProperty (<anonymous>)
    at all-debug.js:2615
    at all-debug.js:2963

this is where 2615 line leads to

 /**
   * Returns the custom data Object passed to the dialog at creation.
   * @noDemo
   * @deprecated after August 2017 | Please use the `dialog.getCustomData(callback)` instead.
   * @name customData
   * @memberOf module:Dialog
   * @example
   * var myDataVariable = AP.dialog.customData.myDataVariable;
   *
   * @return {Object} Data Object passed to the dialog on creation.
   */
  Object.defineProperty(AP$2._hostModules.dialog, 'customData', {
    get: getCustomData
  });
  Object.defineProperty(AP$2.dialog, 'customData', {
    get: getCustomData
  });

1 answer

0 votes
Michael Eskin
Contributor
August 1, 2017 edited

I am seeing the exact same issue with JIRA Cloud and I've verified that all.js is getting loaded from the proper instance URL.

Seeing the same exception being thrown as the original poster happening when all.js gets loaded and AP is never created.

This is an absolute show-stopper for us. 

Administrator September 28, 2017

I am also seeing this. How did you resolve it?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events