Aerilius / sketchup-attribute-inspector

A viewer and editor for entity and model attributes
MIT License
12 stars 7 forks source link

error in main.js, nothing is displayed V3.0.4 #57

Open tomboul26 opened 1 month ago

tomboul26 commented 1 month ago

after selecting a component nothing is displayed, So i open the dev-tools; i have this error in devTools

caught ReferenceError: Cannot access 'i' before initialization at ./dialogs/components/tree-view-subtree.vue (main.js:2:227061) at n (main.js:2:243414) at main.js:2:257336 at main.js:2:286156 at main.js:2:286160

the source code main.js at line 224061

        "./dialogs/components/tree-view-subtree.vue": (e,t,n)=>{
            "use strict";
            n.d(t, {
                A: ()=>i
            });
            const o = {
                components: {
  ->>>>>         TreeViewSubtree: i // <<< here is the error
                },
                beforeCreate() {
                    this.$options.components.TreeViewSubtree = n("./dialogs/components/tree-view-subtree.vue").A
                },
                props: {
                    name: {
                        type: String,
                        default: ""
                    },
                    children: {
                        type: Array,
                        default: ()=>[]
                    },
                    parentPath: {
                        type: Array,
                        default: ()=>[]
                    },
                    nonCommonDictionary: {
                        type: Boolean,
                        default: !1
                    },
                    tree: {
                        type: Object,
                        default: ()=>({})
                    }
                },
                data: ()=>({
                    expanded: !1
                }),
                computed: {
                    id() {
                        return this.path.join("-")
                    },
                    path() {
                        return this.parentPath.slice().concat([this.name])
                    },
                    selected() {
                        return (this.tree.selectedInstance && this.tree.selectedInstance.id) === this.id
                    }
                },
                methods: {
                    handleClickSelect(e) {
                        this.tree._selectInstance(this)
                    },
                    toggleExpand(e) {
                        this.expanded = !this.expanded
                    }
                }
            };

and when i select another component i got this error p.html:1 Uncaught ReferenceError: refresh is not defined at app.html:1:1

here some screenshot of dev tools

2024-07-22_12h19_09 2024-07-22_12h18_14 2024-07-22_12h17_24

tomboul26 commented 1 month ago

so i uninstall 3.0.4 and install 3.0.0 version

but i have this error

2024-07-22_12h33_28

and in devtools i have this error, after changing select menu

2024-07-22_12h33_44

tomboul26 commented 1 month ago

in the V3.0.4 i take the source code of main.js and change the line 10988 TreeViewSubtree: i, to TreeViewSubtree: null,

and it's seems to work better, but it’s not very stable yet

I dropped version 3.0.0