Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "Uncaught RangeError: Maximum call stack size exceeded" with boiler-plate code #74

Open
BubuFS opened this issue Jul 6, 2020 · 5 comments

Comments

@BubuFS
Copy link

BubuFS commented Jul 6, 2020

I'm trying to test with boiler-plate code below, and am getting "Uncaught RangeError: Maximum call stack size exceeded". Any ideas? Thanks.

<html>
    <head>   
        <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.11/ace.js"></script>
        <script src="https://unpkg.com/ace-diff@^3"></script>
        <link href="https://unpkg.com/ace-diff@^3/dist/ace-diff.min.css" rel="stylesheet">
    </head>
    <body>
        <div class="acediff"></div>
        <script>
            const differ = new AceDiff({
                ace: window.ace,
                element: '.acediff',
                left: {
                    content: 'your first file content here',
                },
                right: {
                    content: 'your second file content here',
                },
            });
        </script>
    </body>
</html>
@BubuFS
Copy link
Author

BubuFS commented Jul 6, 2020

Update: Works if I comment out ace: window.ace

@yi-you
Copy link

yi-you commented Jul 8, 2020

It's also happened to me. And after I comment out ace: window.ace , there is another error that occurs Can't find the specified element .acediff. Could you give me some suggestions?

@BubuFS
Copy link
Author

BubuFS commented Jul 8, 2020

It's also happened to me. And after I comment out ace: window.ace , there is another error that occurs Can't find the specified element .acediff. Could you give me some suggestions?

@yi-you Is your javascript BELOW the div element?

@yi-you
Copy link

yi-you commented Jul 8, 2020

It's also happened to me. And after I comment out ace: window.ace , there is another error that occurs Can't find the specified element .acediff. Could you give me some suggestions?

@yi-you Is your javascript BELOW the div element?

Thx. that is my problem, this.$refs.name should be used in Vue to get the HTML element.

@TimChinye
Copy link

Same problem, same solution on v3.0.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants