-
Notifications
You must be signed in to change notification settings - Fork 16
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
Cannot read properties of null (reading 'isCE') #2
Comments
Your library is definitely useful and beautiful, but in addition, it is, I thought necessary, we can publish .map file for |
@zsh2401 <template>
<VueAwesomeSideBar
:menu="testMenu"
v-model:miniMenu="miniMenu"
:collapsed="collapsed"
vueRouterEnabel
@update:collapsed="collapseChange"
></VueAwesomeSideBar>
</template>
<script lang="ts" setup>
import {ref} from "vue"
const miniMenu = ref(false)
const emit = defineEmits(['update:collapsed'])
const collapseChange =(isCollapsed:boolean)=>{
emit('update:collapsed', isCollapsed)
}
const props = defineProps<{
collapsed: boolean
}>()
const testMenu: any[] = [
{
name: 'Dashboard',
icon: { class: 'material-icons-outlined', text: 'dashboard' },
children: [
{
href: '/c',
name: 'level 2.1',
},
]
}
]
</script> and on the parent : <script setup lang="ts">
import { ref, watch } from "vue";
const collapsed = ref(false);
import HelloWorld from "./components/HelloWorld.vue";
watch(collapsed, () => {
console.log(collapsed);
});
</script>
<template>
<HelloWorld v-model:collapsed="collapsed" />
</template>
please let me know if your problem is fixed and if you run into any other problems I'm glad to help. good luck |
I followed your suggestion and this error keeps occurring. I am confused and even tried not binding collapsed or any other properties, this error is still. 😂 |
Though I haven't configure any properties, this error happens. |
Let's cheer! I solved this problem by the method this issue provided!
|
I am so glad to use this library, it is the most beautiful sidebar component in Vue I thought! All below are only some personal advice for improvement of this library, I am so glad to hear if you wanna conserve with me. |
OMG 😂.
weird bug though, they say its because two distinct copies of the Vue package being used, one in each package. but vue is set as a dev-dependency in this library. and its even weirder that i created a new project using vite and it worked ok :/ . maybe if you delete
THANKS bro! ❤️
yes i love your ideas , the naming can be better in this library , some people are using this library and changing the api will cause a bug for them when they update their packages. the solution is to change the api name to something new and make the old one still work. i may create a PR for that soon. if you like and have any suggestions for names i will be very happy if you submit a pr with a suggestion list and i will work on it.
i can't understand , could you be a bit more clear? which effect of collapsed ? which miniMenu's effect? THANKS again for the assist! |
Hidden: the menu is invisible. |
I just installed this library and imported to my Vue3 like what example presents. (import and app.use)
then I got this error.
That is stack:
Part of my code are as follows:
The text was updated successfully, but these errors were encountered: