Title: 2 Uncaught TypeError with custom theme
Last modified: June 16, 2022

---

# 2 Uncaught TypeError with custom theme

 *  Resolved [steve2022](https://wordpress.org/support/users/steve2022/)
 * (@steve2022)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/2-uncaught-typeerror-with-custom-theme/)
 * Just to note, my portfolio is being worked on via localhost for the time being.
 * I’ve been working on a custom theme for my website and the plugin throws errors
   in the console. I have no idea what they mean and I couldn’t find any answers
   on Google.
 * Uncaught TypeError: Cannot destructure property ‘screenSizes’ of ‘window.VPData’
   as it is undefined.
 * Uncaught TypeError: Cannot destructure property ‘__’ of ‘e’ as it is undefined.
 * The plugin works just fine on the other themes that come with WordPress.

Viewing 1 replies (of 1 total)

 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/2-uncaught-typeerror-with-custom-theme/#post-15756626)
 * Hey.
 * Most probably the problem in your custom theme code, I can’t help you with it.
 * Regards, nK.

Viewing 1 replies (of 1 total)

The topic ‘2 Uncaught TypeError with custom theme’ is closed to new replies.

 * ![](https://ps.w.org/visual-portfolio/assets/icon-256x256.png?rev=2389881)
 * [Visual Portfolio, Photo Gallery & Post Grid](https://wordpress.org/plugins/visual-portfolio/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-portfolio/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-portfolio/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-portfolio/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-portfolio/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-portfolio/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nK](https://wordpress.org/support/users/nko/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/2-uncaught-typeerror-with-custom-theme/#post-15756626)
 * Status: resolved