vuejs / devtools

⚙️ Browser devtools extension for debugging Vue.js applications.
https://devtools.vuejs.org
MIT License
24.54k stars 4.13k forks source link

Recaptcha: Uncaught TypeError: Cannot read property 'source' of null #796

Open dmitrybelyakov opened 5 years ago

dmitrybelyakov commented 5 years ago

Version

Browser and OS info

Steps to reproduce


<template>
    <div class="recap">
        <div id="recaptcha" class="g-recaptcha"></div>
        <button @click="execute">Submit</button>
    </div>
</template>

<script>
export default {
    name: "my-recaptcha",
    mounted: function() {
        setTimeout(function(){
            grecaptcha.render('recaptcha', {
                sitekey: '6LdSW3MUAAAAMH5x0mi6Q8Ur8Sn7MAaz_4PCxxq',
                theme: 'light',
                badge: 'bottomright',
            });
        }, 1000)
    },
    methods: {
        execute: function(){
            grecaptcha.execute('recaptcha-id');
        }
    }
}
</script>

What is expected?

The component should render without errors

What is actually happening?

An error happens that points to:"... vue-devtools-proxy"===t.data.source ...I can also reproduce the issue in firefox. There's no issue with vue dev tools disabled.

This basically happens as soon as recaptcha's grecaptcha.render method is called. If we don't render recaptcha, no error happens even with vue devtools open.

dmitrybelyakov commented 5 years ago

This also affects community components such as: