Highlighted

"Uncaught TypeError: AdobeAn.getComposition is not a function"

Community Beginner ,
Jan 23, 2019

Copy link to clipboard

Copied

I have an Animate canvas that I made a few years ago for a client, and it worked fine. Recently it had to be updated - just a few graphics altered, no major rewrite of code or anything. Now, it won't load and I get the error message "Uncaught TypeError: AdobeAn.getComposition is not a function".

It just sticks on the preload screen.

The site has Cloudflare, if I disable Cloudflare by turning on its development mode, the canvas starts working again and the error no longer appears.

Obviously I can't leave Cloudflare turned off - what do I need to do to get round this problem?

Thanks

Views

617

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

"Uncaught TypeError: AdobeAn.getComposition is not a function"

Community Beginner ,
Jan 23, 2019

Copy link to clipboard

Copied

I have an Animate canvas that I made a few years ago for a client, and it worked fine. Recently it had to be updated - just a few graphics altered, no major rewrite of code or anything. Now, it won't load and I get the error message "Uncaught TypeError: AdobeAn.getComposition is not a function".

It just sticks on the preload screen.

The site has Cloudflare, if I disable Cloudflare by turning on its development mode, the canvas starts working again and the error no longer appears.

Obviously I can't leave Cloudflare turned off - what do I need to do to get round this problem?

Thanks

Views

618

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 23, 2019 0
Adobe Community Professional ,
Jan 23, 2019

Copy link to clipboard

Copied

that error is triggered by many different errors in code, eg unpaired curly brackets.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 23, 2019 0
Community Beginner ,
Jan 23, 2019

Copy link to clipboard

Copied

Just for the record:

I made a fresh, empty animate file, then copied over all the graphics and code from the old file, and it just started working.

Could it be because it was an old file originally made several years ago?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 23, 2019 0
ClayUUID LATEST
Adobe Community Professional ,
Jan 23, 2019

Copy link to clipboard

Copied

Cloudflare is failing somehow. Open up your browser's dev console and note any errors that are appearing before the Uncaught TypeError error.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 23, 2019 0