590 comments found.
helo.. i have question.. on the same page i have 1 TomSelect & Chart, why my TomSelect showing item behind Chart,
please can you give me suggestion.. i have post this issue on the comment but no one response it,,
thank you
Hello achmadarka,
I’m really sorry for the delay in getting back to you. We have responded to your message in the previous thread. Please check it for further information. If you have any additional questions or need further assistance, please let us know. We’re here to help!
hello.. how to handle this TomSelect with Chart the list of TomSelect is back of Chart Component
https://imgur.com/a/sr1NyMjthank you
Hello achmadarka,
I’m really sorry for the delay in getting back to you. I understand how frustrating it can be to have to wait for a response. Thank you so much for your understanding and patience.
It looks like there might be a small issue with the ‘z-index’ property. Don’t worry, I’ll guide you through the steps to fix it. Please open the file ’/src/assets/css/components/_tom-select.css’ and locate the selector ’.ts-dropdown’. Once you find it, you can simply adjust the ‘z-index’ value to make sure it’s higher than the canvas of Chart.js.
If you need any further assistance, feel free to ask!
Hi! I had the same issue than gfgilly with vue-sfc-compiler update. I followed your steps, and downloaded and replaced the files, that works fine with: npm run dev. But when I perform: npm run build I got a lot of errors:
Errors Files 1 src/base-components/Ckeditor/BalloonBlockEditor.vue:2 1 src/base-components/Ckeditor/BalloonEditor.vue:2 1 src/base-components/Ckeditor/ClassicEditor.vue:2 1 src/base-components/Ckeditor/DocumentEditor.vue:2 1 src/base-components/Ckeditor/InlineEditor.vue:2 1 src/base-components/Headless/Dialog/Description.vue:14 3 src/base-components/Headless/Dialog/Dialog.vue:22 1 src/base-components/Headless/Dialog/Panel.vue:18 1 src/base-components/Headless/Dialog/Title.vue:14 1 src/base-components/Headless/Disclosure/Button.vue:16 1 src/base-components/Headless/Disclosure/Disclosure/Disclosure.vue:16 1 src/base-components/Headless/Disclosure/Panel.vue:17 1 src/base-components/Headless/Menu/Button.vue:14 1 src/base-components/Headless/Menu/Item.vue:14 1 src/base-components/Headless/Menu/Items.vue:17 1 src/base-components/Headless/Menu/Menu.vue:14 1 src/base-components/Headless/Popover/Button.vue:14 1 src/base-components/Headless/Popover/Panel.vue:17 1 src/base-components/Headless/Popover/Popover.vue:14 1 src/base-components/Headless/Slideover/Description.vue:14 1 src/base-components/Headless/Slideover/Panel.vue:18 3 src/base-components/Headless/Slideover/Slideover.vue:22 1 src/base-components/Headless/Slideover/Title.vue:14 1 src/base-components/Headless/Tab/Group.vue:5 1 src/base-components/Headless/Tab/List.vue:20 1 src/base-components/Headless/Tab/Panel.vue:5 1 src/base-components/Headless/Tab/Panels.vue:5 1 src/base-components/Headless/Tab/Tab/Tab.vue:7 1 src/base-components/LeafletMapLoader/leaflet-map-loader.ts:1 1 src/base-components/Litepicker/litepicker.ts:9 1 src/components/Modal/ModalSuccess.vue:25 2 src/components/ReportMap/ReportMap.vue:6 3 src/layouts/TopMenu/MenuLink.vue:35 7 src/layouts/TopMenu/top-menu.ts:2 1 src/layouts/TopMenu/TopMenu.vue:9 3 src/router/index.ts:16 2 src/utils/colors.ts:4 1 src/utils/helper.ts:3
Can you fix it? Thanks!!
Hello matias119,
I’m really sorry for the delay in getting back to you. I understand how frustrating it can be to have to wait for a response. Thank you so much for your understanding and patience.
Could you please provide more detailed information about the error? Perhaps a screenshot would be helpful as well.
Hi!
Please try to run: npm run dev and npm run build with this package.json file:
this package only updates currents versions
{ “name”: “enigma-vue”, “private”: true, “version”: “0.0.0”, “scripts”: { “dev”: “vite”, “build”: “vue-tsc && vite build”, “preview”: “vite preview” }, “dependencies”: { ”@ckeditor/ckeditor5-build-balloon”: “38.0.1”, ”@ckeditor/ckeditor5-build-balloon-block”: “38.0.1”, ”@ckeditor/ckeditor5-build-classic”: “38.0.1”, ”@ckeditor/ckeditor5-build-decoupled-document”: “38.0.1”, ”@ckeditor/ckeditor5-build-inline”: “38.0.1”, ”@fullcalendar/daygrid”: “6.1.8”, ”@fullcalendar/interaction”: “6.1.8”, ”@fullcalendar/list”: “6.1.8”, ”@fullcalendar/timegrid”: “6.1.8”, ”@fullcalendar/vue3”: “6.1.8”, ”@googlemaps/js-api-loader”: “1.16.1”, ”@googlemaps/markerclusterer”: “2.2.2”, ”@headlessui/vue”: “1.7.14”, ”@vuelidate/core”: “2.0.2”, ”@vuelidate/validators”: “2.0.2”, “chart.js”: “4.3.0”, “dayjs”: “1.11.8”, “dropzone”: “6.0.0-beta.2”, “flat”: “5.0.2”, “highlight.js”: “11.8.0”, “js-beautify”: “1.14.8”, “leaflet”: “1.9.4”, “leaflet.markercluster”: “1.5.3”, “litepicker”: “2.0.12”, “lucide”: “0.240.0”, “lucide-vue-next”: “0.240.0”, “pinia”: “2.1.3”, “simplebar”: “6.2.5”, “tabulator-tables”: “5.5.0”, “tiny-slider”: “2.9.4”, “tippy.js”: “6.3.7”, “toastify-js”: “1.12.0”, “tom-select”: “2.2.2”, “vue”: “3.3.4”, “vue-router”: “4.2.2”, “xlsx”: “0.18.5”, “zoom-vanilla.js”: “2.0.6” }, “devDependencies”: { ”@tailwindcss/forms”: “0.5.3”, ”@types/dropzone”: “5.7.4”, ”@types/flat”: “5.0.2”, ”@types/google.maps”: “3.53.2”, ”@types/js-beautify”: “1.13.3”, ”@types/leaflet”: “1.9.3”, ”@types/leaflet.markercluster”: “1.5.1”, ”@types/lodash”: “4.14.195”, ”@types/tabulator-tables”: “5.32.1”, ”@types/toastify-js”: “1.11.1”, ”@vitejs/plugin-vue”: “4.2.3”, “autoprefixer”: “10.4.14”, “lodash”: “4.17.21”, “postcss”: “8.4.24”, “postcss-advanced-variables”: “3.0.1”, “postcss-import”: “15.1.0”, “postcss-nesting”: “11.2.2”, “tailwind-merge”: “1.13.0”, “tailwindcss”: “3.3.2”, “typescript”: “5.1.3”, “vite”: “4.3.9”, “vue-tsc”: “1.6.5” } }
Hi there,
Thank you for reaching out to us. We’re sorry to hear that you’re facing issues while running `npm run dev` and `npm run build` with the provided package.json file.
It seems that there might be some differences in the versions of dependencies you’re using compared to the ones specified in the Midone template. We want to assure you that we’re here to help, but managing dependencies is a responsibility that lies with each buyer. Different versions of packages can sometimes cause variations in typings and support.
To address the specific issue you mentioned with `vue-sfc`, we suggest trying to update it by running the command `yarn add vue`. This could potentially resolve the problem you’re facing.
If you have any further questions or need additional assistance, please don’t hesitate to ask. We’re dedicated to providing you with the support you need.
Thank you for your understanding and patience.
Warm regards, Left4code Team
Hey, loving the theme so far! Could you please help me with a particular routing issue? I have a side-menu with a parent and two children elements. Is there a way I can route to a specific child-page on-click of the parent, rather than just opening the sub-menu?
Hello michaelmocan,
I’m really sorry for the delay in getting back to you. I understand how frustrating it can be to have to wait for a response. Thank you so much for your understanding and patience.
Unfortunately, the Midone theme doesn’t have a built-in option to directly route to a specific child page when clicking on the parent menu. However, don’t worry! I’m here to help you with a workaround.
To achieve the desired functionality, we’ll need to make a few adjustments to the code. Don’t worry—I’ll guide you through each step!
First, let’s open the file located at ”/src/stores/side-menu.ts”. Inside that file, add the following line of code:
Next, we’ll navigate to the file at ”/src/layouts/SideMenu/side-menu.ts”. Inside that file, add the following line of code:
Once you’ve made these changes, you can use the “forceRedirect” property to accomplish the routing behavior you’re looking for.
I hope this explanation makes it clearer for you. If you have any further questions or need additional assistance, please feel free to ask.
Amazing, that worked great. No problem about the delay. Thanks very much
You’re welcome! If you have any more questions, feel free to ask. I’m here to help!
Hi Team,
How can i “setDate” to Litepicker?
And tom-select nested(optgroup), kindly refer to the attached image by link: https://imgur.com/a/99kx18p
Please help. Thank you.
Hello,
I apologize for the delayed response in our reply. To set the value of the Litepicker component in your Vue component, you can use the v-model directive along with the `litepicker` ref. Here’s how you can do it:
<script setup lang="ts">
import { ref } from "vue";
import Litepicker from "../base-components/Litepicker";
const litepicker = ref<string>("");
// Function to set the value of Litepicker
const setLitepickerValue = (value: string) => {
litepicker.value = value;
};
</script>
<template>
<Litepicker
v-model="litepicker"
:options="{
autoApply: false,
showWeekNumbers: true,
dropdowns: {
minYear: 1990,
maxYear: null,
months: true,
years: true,
},
}"
/>
<button @click="setLitepickerValue('2023-05-22')">Set Value</button>
</template>
To set the value of the TomSelect component, you can define a method in your Vue component and call it on the button’s click event. Here’s an example:
<template>
<div>
<TomSelect
v-model="subcategory"
:options="{
placeholder: 'Etalase',
}"
class="w-full"
>
<option
v-for="(faker, fakerKey) in _.take(fakerData, 3)"
:key="fakerKey"
:value="fakerKey"
>
{{ faker.categories[0].name }}
</option>
</TomSelect>
<button @click="setTomSelectValue">Set Value</button>
</div>
</template>
<script setup lang="ts">
import _ from "lodash";
import { ref } from "vue";
import TomSelect from "../base-components/TomSelect";
const subcategory = ref("0");
const setTomSelectValue = () => {
subcategory.value = "2"; // Set the desired value here
};
</script>
In the above code, the setTomSelectValue method is defined to set the value of subcategory to “2”. When the button is clicked (@click=”setTomSelectValue”), the method is called, and the value of subcategory will be updated accordingly, reflecting the change in the TomSelect component. No worries if you use the “optgroup” because it only affects how it looks and doesn’t affect how you change the value in the TomSelect component.
If you have any more questions or need further assistance in the future, please feel free to reach out. We’re here to help!
Best regards, Left4Code Team
Hi Team,
TomSelect is now operational, but Litepicker is unable to utilize the “setDate” method by link: https://litepicker.com/docs/methods
Please help. Thank you.
I’m download theme latest version, but cannot used component. Error by link: https://imgur.com/Aw6SNCB
Please help. Thank you.
The components are now working fine. But TomSelect not working.
Please help. Thank you.
Hi there,
Thank you for your reply,
You don’t have to rely on the built-in setDate function provided by the Litepicker plugin to update the value. Using that function won’t automatically trigger any changes (Input reactivity) in the input field. Instead, you can easily update the value by following these steps:
const setLitepickerValue = (value: string) => {
litepicker.value = value;
};
If you have any more questions, feel free to ask. I’m here to help!
Hi Team,
I tried following the example you sent. It can only be set display value. but can’t set active date. https://imgur.com/HEsVq3HThat’s to be expected by link: https://imgur.com/3Icsn7J
Please help. Thank you.
Hello,
I hope this message finds you well. I wanted to reach out and apologize for any confusion regarding the Litepicker component in Midone Vue.
I’m pleased to inform you that we have addressed the reported issue in the latest version of Midone Vue. You can now download the update, which includes the necessary fixes for the Litepicker component. To apply the update, please replace the following files in your project:
”/src/base-components/Form”
”/src/base-components/Litepicker”
We appreciate your patience and understanding throughout this process. We strive to provide the best possible user experience, and your feedback has been invaluable in helping us make these improvements.
If you have any further questions or need assistance with the update, please don’t hesitate to reach out. We’re here to support you.
Thank you for choosing Midone Vue, and we apologize for any inconvenience caused. We look forward to serving you with even better products in the future.
Best regards,
Left4code Team
Hi Team,
Very nice work, thanks for help.
How can i set minDate for endDate after choose startDate?
How can i add button clear in FormInput? eample: https://imgur.com/wlZmA2t
Please help. Thank you.
Hello,
Thank you for your kind words and apologies for the delay in our response. We appreciate your patience.
To set a minimum date for the endDate after selecting the startDate, you can use `minDays` property, please refer to this link.
https://litepicker.com/docs/options#mindaysPlease check the following code for the clear input example:
<template>
<div class="relative">
<input
v-model="inputValue"
class="w-full px-4 py-2 rounded border border-gray-300 focus:outline-none focus:ring focus:border-blue-500"
placeholder="Enter value"
/>
<button
v-show="inputValue !== ''"
@click="clearInput"
class="absolute right-0 top-0 h-full flex items-center pr-2"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5 text-gray-400 cursor-pointer hover:text-gray-600"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
fill-rule="evenodd"
d="M10 0C4.475 0 0 4.475 0 10s4.475 10 10 10 10-4.475 10-10S15.525 0 10 0zm5 10a.999.999 0 01-.293.707l-4 4a.999.999 0 01-1.414 0l-4-4A.999.999 0 015 10a.999.999 0 111.414-1.414L10 8.586l3.293-3.293A.999.999 0 1115 7z"
clip-rule="evenodd"
/>
</svg>
</button>
</div>
</template>
<script>
export default {
data() {
return {
inputValue: '',
};
},
methods: {
clearInput() {
this.inputValue = '';
},
},
};
</script>
<style>
/* Add any additional custom styling here */
</style>
How can i get event after select date? This theme version before change to Typescript can set minDate for endDate after choose startDate for Litepicker.
Ex.
endDateRef.Litepicker.setOptions({
minDate: '2023-06-30'
})
And button clear FormInput I can set in ”/src/base-components/Form”?
Please help. Thank you.
Hi,
I sincerely apologize for the delayed response, and I appreciate your understanding.
Certainly! You can access the Litepicker instance as follows:
import Litepicker, { LitepickerElement } from "../base-components/Litepicker/Litepicker.vue";
import { ref, provide } from "vue";
const litepickerRef = ref<LitepickerElement>();
provide("bind[litepickerRef]", (el: LitepickerElement) => {
litepickerRef.value = el;
// Get instance here
console.log(litepickerRef.value.litePickerInstance)
});
<Litepicker
refKey="litepickerRef"
v-model="date"
:options="{
autoApply: false,
showWeekNumbers: true,
dropdowns: {
minYear: 1990,
maxYear: null,
months: true,
years: true,
},
}"
class="block w-56 mx-auto"
/>
Feel free to reach out if you have any more questions or need further assistance.
Thank you for your patience.
Best regards
Hello, thanks for great theme. When im running yarn build its throwing alot of errors like
src/components/MobileMenu/MobileMenu.vue:124:26 – error TS2322: Type ‘(el: HTMLElement) => void’ is not assignable to type ‘Hook<(el: Element, done: () => void) => void> | undefined’. Type ‘(el: HTMLElement) => void’ is not assignable to type ‘(el: Element, done: () => void) => void’. Types of parameters ‘el’ and ‘el’ are incompatible. Type ‘Element’ is missing the following properties from type ‘HTMLElement’: accessKey, accessKeyLabel, autocapitalize, dir, and 117 more.
124 <Transition @enter=”enter” @leave=”leave” v-if=”menu.subMenu”>
any chanse to fix that?
Hello,
Thank you for reporting this issue. It appears to be related to the latest update of the ‘vue-sfc-compiler’ that was released a few days ago.
https://github.com/vuejs/core/issues/8286
We have just released an update to address this issue. Please download the project again and replace the following files:
- /src/base-components
- /src/components/mobile-menu
- /src/layouts
By replacing these files with the updated versions, the issue should be resolved.
If you have any further questions or need assistance, please feel free to ask.
hello! I am getting some errors after I download vuejs 3 template. I download the project, npm install (node 18) and i get this right away when i try to visit the site. Thoughts on what it might be?
plugin:vite:vue Failed to resolve extends base type. If this previously worked in 3.2, you can instruct the compiler to ignore this extend by adding /* @vue-ignore / before it, for example:
interface Props extends / @vue-ignore */ Base {}
Note: both in 3.2 or with the ignore, the properties in the base type are treated as fallthrough attrs at runtime.
/Users/mistergf/Downloads/Midone Vue/Vue Version/Rubick v5.0.2/Source
Hello,
Thank you for reporting this issue. It appears to be related to the latest update of the ‘vue-sfc-compiler’ that was released a few days ago.
https://github.com/vuejs/core/issues/8286
We have just released an update to address this issue. Please download the project again and replace the following files:
- /src/base-components
- /src/components/mobile-menu
- /src/layouts
By replacing these files with the updated versions, the issue should be resolved.
If you have any further questions or need assistance, please feel free to ask.
thank you! This fixed it!!!
You’re welcome! I’m glad to hear that the solution worked for you.
Hi There
When building the Rubick starter project I get the following error:
1: import dayjs from "dayjs";
^
2: import duration from "dayjs/plugin/duration";
3: import { parseColor } from "tailwindcss/lib/util/color";
error during build:
Error: 'default' is not exported by .yarn/cache/dayjs-npm-1.11.7-d5cd5b2919-5003a7c1dd.zip/node_modules/dayjs/dayjs.min.js, imported by src/utils/helper.ts
can you help?
thank you
Hi Left4Code, I’m still have a problem with this. Please see the error below that i get when running ‘yarn build’
'default' is not exported by .yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/lodash.js, imported by src/base-components/Form/FormCheck/FormCheck.vue?vue&type=script&setup=true&lang.ts
file: C:/Data/Git/Obbionne/Obbione.FrontEnd/src/base-components/Form/FormCheck/FormCheck.vue?vue&type=script&setup=true&lang.ts:4:7
2: import { unref as _unref, renderSlot as _renderSlot, mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue"
3:
4: import _ from "lodash";
^
5: import { twMerge } from "tailwind-merge";
6: import { computed, useAttrs } from "vue";
error during build:
Error: 'default' is not exported by .yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/lodash.js, imported by src/base-components/Form/FormCheck/FormCheck.vue?vue&type=script&setup=true&lang.ts
at error (file:///C:/Data/Git/Obbionne/Obbione.FrontEnd/.yarn/cache/rollup-npm-2.79.1-94e707a9a3-6a2bf167b3.zip/node_modules/rollup/dist/es/shared/rollup.js:1858:30)
Hello,
Thank you for reaching out to us. We apologize for the delay in our response. We understand that you have encountered an error while trying to reproduce the issue with the latest version of Midone. However, we couldn’t replicate the same error, suggesting that it may be related to differences in the environment on your local machine.
As a first step in troubleshooting this issue, we recommend deleting the installed dependencies and reinstalling them. You can delete the following directories and then run “yarn install” to reinstall the dependencies:
1. ”/node_modules”
2. “yarn.lock”
If the same error persists, could you please let us know if the error also occurs when you run “yarn run dev”?
We appreciate your patience, and we’ll do our best to assist you in resolving this issue.
Best regards,
Left4code Team
Hello,
Thank you so much for your help. But unfortunately, I’m still having the same issue.
It works perfectly when I run “yarn run dev” and i’m able to test it on localhost:5173
I have followed your suggestion without success.
I have also tried it on a newly created VM without success, so I’m not sure if it is my environment that is the problem.
Maybe I’m following the wrong steps.
I’m running windows 11 and I have installed Node.js 18.16.0. I’ve installed yarn using the steps on this page: https://yarnpkg.com/getting-started/install
I then ran “yarn install” successfully. But when i run “yarn build” i get the following error.
C:\Data\Rubick\Source_starter>yarn build
vite v3.2.6 building for production...
✓ 1266 modules transformed.
'default' is not exported by .yarn/cache/dayjs-npm-1.11.7-d5cd5b2919-5003a7c1dd.zip/node_modules/dayjs/dayjs.min.js, imported by src/utils/helper.ts
file: C:/Data/Rubick/Source_starter/src/utils/helper.ts:1:7
1: import dayjs from "dayjs";
^
2: import duration from "dayjs/plugin/duration";
3: import { parseColor } from "tailwindcss/lib/util/color";
error during build:
Error: 'default' is not exported by .yarn/cache/dayjs-npm-1.11.7-d5cd5b2919-5003a7c1dd.zip/node_modules/dayjs/dayjs.min.js, imported by src/utils/helper.ts
at error (file:///C:/Data/Rubick/Source_starter/.yarn/cache/rollup-npm-2.79.1-94e707a9a3-6a2bf167b3.zip/node_modules/rollup/dist/es/shared/rollup.js:1858:30)
at Module.error (file:///C:/Data/Rubick/Source_starter/.yarn/cache/rollup-npm-2.79.1-94e707a9a3-6a2bf167b3.zip/node_modules/rollup/dist/es/shared/rollup.js:12429:16)
at Module.traceVariable (file:///C:/Data/Rubick/Source_starter/.yarn/cache/rollup-npm-2.79.1-94e707a9a3-6a2bf167b3.zip/node_modules/rollup/dist/es/shared/rollup.js:12788:29)
at ModuleScope.findVariable (file:///C:/Data/Rubick/Source_starter/.yarn/cache/rollup-npm-2.79.1-94e707a9a3-6a2bf167b3.zip/node_modules/rollup/dist/es/shared/rollup.js:11440:39)
at MemberExpression.bind (file:///C:/Data/Rubick/Source_starter/.yarn/cache/rollup-npm-2.79.1-94e707a9a3-6a2bf167b3.zip/node_modules/rollup/dist/es/shared/rollup.js:8601:49)
at CallExpression.bind (file:///C:/Data/Rubick/Source_starter/.yarn/cache/rollup-npm-2.79.1-94e707a9a3-6a2bf167b3.zip/node_modules/rollup/dist/es/shared/rollup.js:5269:23)
at CallExpression.bind (file:///C:/Data/Rubick/Source_starter/.yarn/cache/rollup-npm-2.79.1-94e707a9a3-6a2bf167b3.zip/node_modules/rollup/dist/es/shared/rollup.js:8935:15)
at ExpressionStatement.bind (file:///C:/Data/Rubick/Source_starter/.yarn/cache/rollup-npm-2.79.1-94e707a9a3-6a2bf167b3.zip/node_modules/rollup/dist/es/shared/rollup.js:5269:23)
at Program.bind (file:///C:/Data/Rubick/Source_starter/.yarn/cache/rollup-npm-2.79.1-94e707a9a3-6a2bf167b3.zip/node_modules/rollup/dist/es/shared/rollup.js:5265:73)
at Module.bindReferences (file:///C:/Data/Rubick/Source_starter/.yarn/cache/rollup-npm-2.79.1-94e707a9a3-6a2bf167b3.zip/node_modules/rollup/dist/es/shared/rollup.js:12425:18)
C:\Data\Rubick\Source_starter>
Hi Left4Code,
I managed to reslove the issue by adding ”.yarn/**” to the build.commonjsOptions.includes array in the vite.config.js file.
my vite.config.js file looks like this now and the project can build ! yaaay !
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
build: {
commonjsOptions: {
include: ["tailwind.config.js", "node_modules/**", ".yarn/**"],
},
},
optimizeDeps: {
include: ["tailwind-config"],
},
plugins: [vue()],
resolve: {
alias: {
"tailwind-config": path.resolve(__dirname, "./tailwind.config.js"),
},
},
})
Hello,
That’s great to hear that you were able to resolve the issue by modifying the vite.config.js file. We’re glad that the project can now build successfully! If you have any further questions or need any more assistance, please don’t hesitate to reach out.
Best regards, Left4Code Team
Hello, I’m using your template to build my website, but I’m having warnings in the console:
Failed to resolve component: FormLabel If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
Failed to resolve component: LoadingIcon If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
How can I resolve those? Thank you
Nevermind I just forgot the import…
Hi there!
I’m so happy to hear that you were able to resolve the issue. If you need any further assistance or have any questions, please don’t hesitate to ask. We’re always here to help. Have a wonderful day!
Hi I work with your great “template” and saw, there is a recent update available, but in change log there is nothing about. Could you please update what changed in the newest release? Tks
Hi,
Thank you for reaching out. We’re glad to hear that you received an update notification for your project. To apply the update, you’ll need to update the specific file or directory below.
- “package.json” - ”/src/layouts/SideMenu/SideMenu.vue” - ”/src/layouts/SideMenu/side-menu.ts” - ”/src/layouts/SimpleMenu/SimpleMenu.vue” - ”/src/layouts/SimpleMenu/simple-menu.ts” - ”/src/layouts/TopMenu/TopMenu.vue” - ”/src/layouts/SimpleMenu/top-menu.ts” - ”/src/base-components/LeafletMapLoader” - ”/src/base-components/Headless”
In this update, we focused on enhancing the typing for the latest version of HeadlessUI. We have also added a new component for Leaflet maps in this update. This new component will provide enhanced functionality and options for integrating maps into your projects.
As for the changelog or release notes, you can find them at the end of the item page description. If you have any further questions or need additional assistance, please feel free to ask. We’re here to help!
Best regards, Left4code Team
i received an update notification, then which file or directory i should replace to apply update to my existing project? and, where can i find a changelog/release notes for every update?
Hi,
Thank you for reaching out. We’re glad to hear that you received an update notification for your project. To apply the update, you’ll need to update the specific file or directory below.
- “package.json” - ”/src/layouts/SideMenu/SideMenu.vue” - ”/src/layouts/SideMenu/side-menu.ts” - ”/src/layouts/SimpleMenu/SimpleMenu.vue” - ”/src/layouts/SimpleMenu/simple-menu.ts” - ”/src/layouts/TopMenu/TopMenu.vue” - ”/src/layouts/SimpleMenu/top-menu.ts” - ”/src/base-components/LeafletMapLoader” - ”/src/base-components/Headless”
In this update, we focused on enhancing the typing for the latest version of HeadlessUI. We have also added a new component for Leaflet maps in this update. This new component will provide enhanced functionality and options for integrating maps into your projects.
As for the changelog or release notes, you can find them at the end of the item page description. If you have any further questions or need additional assistance, please feel free to ask. We’re here to help!
Best regards, Left4code Team
Hi Team,
Although I tried to using inject(“forceActiveMenu”)(“page-name”), it did not work in TypeScript.
Thank you.
Hi there,
I hope this message finds you well. I wanted to let you know that we have noticed your support license has expired. We are sorry for any inconvenience this may have caused. If you would like to continue receiving assistance from our team for the item, we kindly request that you consider extending your support license. This would enable us to continue providing you with the help you need.
Thank you for your understanding, and please let us know if you have any questions or concerns.
Best regards,
Hi Team,
I have already purchased 2 licenses.
Please help. Thank you.
Thank you for contacting us! We really appreciate your support and we are so grateful for your recent purchase of two licenses. We hope that you find our product valuable and that it meets all your expectations.
We have released an update for the Typescript version. Please update the following file in your theme directory ’/src/layouts’ accordingly. After that, you can use the following code to enable a specific menu on each page.
Please don’t hesitate to reach out if you have any further questions or concerns.
Very nice work, thanks for help.
It was a pleasure assisting you. If you have any further questions or concerns, please don’t hesitate to reach out to me again. Have a great day!
I bought this product but I am getting error when building Rubick theme: Midone Vue\Vue Version\Rubick v5.0.2\Source
I run the command: npn run build And I get the following error:
> build rubick-vue@0.0.0 > vue-tsc && vite build
src/base-components/Litepicker/litepicker.ts:9:11 – error TS2430: Interface ‘Selector’ extends interface ‘Litepicker’ incorrectly. Property types ‘on’ are not compatible. Type ‘((event: string, cb: (startDate: { dateInstance: Date; }, endDate: { dateInstance: Date; }) => void) => {}) | undefined’ is not assignable to type ‘(event name: string | symbol, listener: (...args: any[]) => void) => this . Type ‘undefined’ is not assignable to type ‘(eventName: string | symbol, listener: (...args: any[]) => void) => this’.
9 Litepicker Extensible Picker Interfaces {
What should I do to fix the above error. Please asap. Thank you very much
Hello there,
Thank you for reaching out to us.
Based on the error message you provided it looks like the error message you’re receiving is related to the `Litepicker` interface. We have released an update for this in a previous update. Please re-download the latest version and replace this component `/src/base-components/Litepicker`. Please let us know if you have any further questions or concerns.
Best regards,
How to customize the menu according to roles?
Hi dianemambe10,
We apologize for the late reply, and we appreciate your patience.
Regarding your question, assuming you have an array of user roles and you want to filter the menu items based on those roles, you could use the following code:
import { computed } from "vue";
import { useSideMenuStore, Menu } from "./useSideMenuStore";
export const useFilteredMenu = (userRoles: string[]) => {
const sideMenuStore = useSideMenuStore();
const filteredMenu = computed(() =>
sideMenuStore.menu.filter((menuItem) => {
// Check if the menu item has the "ignore" property set to true
if (menuItem.ignore) {
return false;
}
// If the menu item has a sub-menu, filter the sub-menu recursively
if (menuItem.subMenu) {
const filteredSubMenu = menuItem.subMenu.filter((subMenuItem) =>
hasAccess(subMenuItem, userRoles)
);
return filteredSubMenu.length > 0;
}
// If the menu item doesn't have a sub-menu, check if the user has access to it
return hasAccess(menuItem, userRoles);
})
);
const hasAccess = (menuItem: Menu, userRoles: string[]) => {
// Check if the menu item has a "roles" property and if the user has one of those roles
if (menuItem.roles && menuItem.roles.some((role) => userRoles.includes(role))) {
return true;
}
// If the menu item doesn't have a "roles" property, the user has access to it
if (!menuItem.roles) {
return true;
}
// If the menu item has a "roles" property and the user doesn't have one of those roles, they don't have access
return false;
};
return {
filteredMenu,
};
};
This code defines a useFilteredMenu function that takes an array of user roles as a parameter and returns a computed property filteredMenu, which contains only the menu items that the user has access to based on their roles.
The function iterates through the menu items recursively and filters out the items that have the “ignore” property set to true. For the items that don’t have the “ignore” property, it checks if the user has access to them based on their roles. If the item has a sub-menu, it filters the sub-menu recursively. Finally, it returns an array containing only the items that the user has access to.
To use this code, you would import the useFilteredMenu function and pass in the user roles as a parameter, like this:
import { useFilteredMenu } from "./useFilteredMenu";
const userRoles = ["admin", "editor"];
const { filteredMenu } = useFilteredMenu(userRoles);
console.log(filteredMenu.value); // This will output the filtered menu items
I hope this helps! Let me know if you have any further questions or concerns.
Hi Team,
I use tom-select nested(optgroup) get options from api, but unable to display the value. Additionally, use tom-select in the modal; after clicking to reveal the modal, the dropdown will automatically open.
Please help. Thank you.
Hi there,
I hope this message finds you well. I wanted to let you know that we have noticed your support license has expired. We are sorry for any inconvenience this may have caused. If you would like to continue receiving assistance from our team for the item, we kindly request that you consider extending your support license. This would enable us to continue providing you with the help you need.
Thank you for your understanding, and please let us know if you have any questions or concerns.
Best regards,
Hi Team,
I have already purchased 2 licenses.
Please help. Thank you.
Hi there,
Thank you for reaching out to us. Regarding the issue with displaying the value in tom-select nested (outgroup), please check the following example.
<template>
<div>
<TomSelect v-model="selectedOption" :options="{
placeholder: 'Select option...',
}"
class="w-full">
<optgroup v-for="(group, index) in optionGroups" :label="group.label" :key="index">
<option v-for="(option, index) in group.options" :value="option.value" :key="index">{{ option.label }}</option>
</optgroup>
</TomSelect>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import axios from 'axios';
interface Option {
label: string;
value: string | number;
}
interface OptionGroup {
label: string;
options: Option[];
}
export default defineComponent({
name: 'GroupedSelect',
data() {
return {
selectedOption: '',
optionGroups: [] as OptionGroup[],
};
},
mounted() {
axios.get('/api/options').then((response) => {
this.optionGroups = response.data;
});
},
});
</script>
In this example, the component uses the axios library to make an HTTP request to an API that returns an array of option groups, each with a label and an array of options. The component then renders a <TomSelect> component with nested <optgroup> elements for each group of options. When an option is selected, the selectedOption data property is updated with the corresponding value.
As for the issue with the dropdown automatically opening in the modal, you can try setting the “openOnFocus” option to “false” when initializing the tom-select instance. This should prevent the dropdown from opening automatically when the input is focused.
If you’re still having trouble with it, please don’t hesitate to share the code you’re using to display the TomSelect component in the Modal. We’ll be more than happy to take a look and try to help you figure out what’s going on.
Don’t worry, we’re here to assist you in any way we can. Thank you so much!
Hi Team,
I attempted to follow your advice. but still can’t use. My code is as follows.
<script setup lang=”ts”> import { ref, onMounted } from ‘vue’
onMounted(() => { getMaster() })
const locationValue = ref(’’) let locations = ref(new Array<Location>())
const getMaster = () => { await locationApi .getByProvince(province) .then((res) => { if (res.data && res.data !== null) { locations.value = res.data locationValue.value = ’’ } } </script>
})
.catch((err) => {
})
<template> <TomSelect v-model=”locationValue” :options=”{ plugins: { clear_button: true }, placeholder: ‘Select location…’ }” class=”form-control w-full” > <optgroup v-for=”(group, index) in locations” :label=”group.name” :key=”index”> <option v-for=”(option, index) in group.locations” :value=”option.location_id” :key=”index”> {{ option.location_name }} </option> </optgroup> </TomSelect> </template>
Response for API [ { name: ‘test a’, locations: [ { location_id: 1, location_name: ‘location 1’ }, { location_id: 2, location_name: ‘location 2’ } ] }, { name: ‘test b’, locations: [ { location_id: 3, location_name: ‘location 3’ }, { location_id: 4, location_name: ‘location 4’ } ] } ]
Please help. Thank you.
Hello,
We want to extend our sincerest apologies for the delay in getting back to you. We understand how frustrating it can be to wait, and we appreciate your patience. In regards to your query, could you please provide us with more detailed step-by-step information on reproducing the issue? The code you provided is a bit difficult to read, so it would be helpful if you could provide us with a screenshot for more clarity. This will allow us to assist you more effectively.
Thank you for your understanding and cooperation. We’re here to help!
Hello,
Thank you for your reply. It seems that there is nothing wrong with the code you provided.
If you are facing any issues or need assistance with something specific, please provide more details about the problem or error message you are encountering. Additionally, if there are any relevant code snippets or steps to reproduce the issue, please include them in your response.
We’re here to help, so please let us know how we can assist you further.
Thank you, Left4code Team
Hi,
FormInput component seem not reactive
const test = ref(“test”)
<FormInput name=”test” type=”text” class=”w-full” v-model=”test” />
<Button as=”button” @click=”test = ‘updated test’” />
upon clicking, FormInput is not updated
Hi there,
Sorry for the delayed response. We apologize for any inconvenience caused by the issue with FormInput not updating upon clicking. We have released an update to fix this issue in our previous update. Please download the latest package and replace the following component ”/src/base-components/Form”. This should resolve the issue.
Thank you for bringing this to our attention and please let us know if you have any further issues.
Best regards, Left4code Team
lots of typo of “devider” in css. Not healthy for OCD user 
Hi,
Thank you for bringing this to our attention. We apologize for any inconvenience caused by the typos.
We want to let you know that we have released an update to fix this issue in our latest update. We appreciate your feedback and support in making our product better.
also if possible to share your eslint or prettier format also, so easier to develop using the template with the same format
Hello, I just bought this template, and this template is really awesome.
I have a question. How do I make the breadcrumb dynamically display the menu and submenus of the displayed page? so when displaying the Overview 3 page, the breadcrumb will display Application > Dashboard > Overview 3; or when displaying the Product List page, the breadcrumb will display Application > E-Commerce > Products > Product List; and so on.
Thank You
Dear silinapas,
Thank you so much for your email and for choosing our template! We truly appreciate your business and your kind words about our product. I am so sorry for the delay in my response, but please know that we value you as a customer and I will do my best to assist you with your question as promptly as possible.
Regarding your question about the breadcrumb functionality, unfortunately, this is not available by default in our template. However, we have a code example that you may find helpful. Please see the code below:
/src/components/TopBar/TopBar.vue
import { useRoute, RouteRecordName } from "vue-router";
import { useSideMenuStore, Menu as MenuState } from "../../stores/side-menu";
// Get list of side menu items
const sideMenuStore = useSideMenuStore();
// We can call vue-router built in function to get current route name
const route = useRoute();
// Recursively find related menu item base on page name
function findMenu(
menu: Array<MenuState | "divider">,
pageName: RouteRecordName | null | undefined
): MenuState[] {
let result: MenuState[] = [];
for (let item of menu) {
if (typeof item !== "string" && item.pageName === pageName) {
result.push(item);
return result;
} else if (typeof item !== "string" && item.subMenu) {
const found = findMenu(item.subMenu, pageName);
if (found.length > 0) {
result = [item, ...found];
return result;
}
}
}
return result;
}
// Store the final result for breadcrumbs
const breadcrumbs = ref<Array<MenuState>>(
findMenu(sideMenuStore.menu, route.name)
);
// Watch every route change to restore the breadcrumb links
watch(route, () => {
breadcrumbs.value = findMenu(sideMenuStore.menu, route.name);
});
/src/components/TopBar/TopBar.vue
<!-- Example Usage -->
<Breadcrumb class="hidden mr-auto -intro-x sm:flex">
<Breadcrumb.Link
v-for="(menu, key) in breadcrumbs"
:to="menu.pageName"
:index="key"
:active="menu.pageName === route.name"
>{{ menu.title }}</Breadcrumb.Link
>
</Breadcrumb>
I hope this information is helpful. If you have any further questions or concerns, please do not hesitate to reach out to us. Thank you for your patience and understanding.
Best regards, Left4code Team
Hello, hope you are fine. I juste buy this vuejs template yesterday. But unforttunatly the Source code are you working, but the starter work.
The source code make this error
Uncaught ReferenceError: process is not defined at node_modules/tailwindcss/lib/lib/sharedState.js
Dear vivano76,
Thank you for reaching out and I apologize for the delayed response. I’m sorry to hear that you are encountering an error with the source code of the VueJS template you recently purchased.
It seems that there may be an issue with the latest version of Tailwind, which is causing the error you mentioned. As a temporary solution, could you please try using the previous version of Tailwind (version 3.2.7) until we find a permanent solution for this issue?
Please run the following command:
yarn add tailwindcss@3.2.7
If you continue to experience any issues, please don’t hesitate to reach out.
Best regards, Left4code Team
Hello!
We are happy to inform you that the issue has been resolved in the latest version of Tailwind (3.3.1) and you can check the changelog at the following link.
https://github.com/tailwindlabs/tailwindcss/releases/tag/v3.3.1
We recommend that you update your Tailwind version to the latest release. To do this, please run the following command:
yarn add tailwindcss
Please let us know if you have any other questions or concerns, we are always here to help.
Best regards, Left4code Team
Hello, hope you are fine. I juste buy this vuejs template yesterday. But unforttunatly the Source code are you working, but the starter work.
The source code make this error
Uncaught ReferenceError: process is not defined at node_modules/tailwindcss/lib/lib/sharedState.js
Dear vivano76,
Thank you for reaching out and I apologize for the delayed response. I’m sorry to hear that you are encountering an error with the source code of the VueJS template you recently purchased.
It seems that there may be an issue with the latest version of Tailwind, which is causing the error you mentioned. As a temporary solution, could you please try using the previous version of Tailwind (version 3.2.7) until we find a permanent solution for this issue?
Please run the following command:
yarn add tailwindcss@3.2.7
If you continue to experience any issues, please don’t hesitate to reach out.
Best regards, Left4code Team
Hello!
We are happy to inform you that the issue has been resolved in the latest version of Tailwind (3.3.1) and you can check the changelog at the following link.
https://github.com/tailwindlabs/tailwindcss/releases/tag/v3.3.1
We recommend that you update your Tailwind version to the latest release. To do this, please run the following command:
yarn add tailwindcss
Please let us know if you have any other questions or concerns, we are always here to help.
Best regards, Left4code Team
Hi Team,
How can i set menu active in child path?
And how can i use “Menu Dropdown” component in Tabulator formatter cell?
Thank you.
Hi there,
Thank you for reaching out to us. Regarding your first question on setting the active menu in child paths, we recommend using inject(“forceActiveMenu”)(“page-name”) to force the active menu. You can refer to the screenshot we provided for a visual representation of how to use this feature.
https://i.imgur.com/azTrADl.pngRegarding your second question on using the “Menu Dropdown” component in the Tabulator formatter cell, unfortunately, this is not currently possible as we have migrated to HeadlessUI for our dropdown components.
Please let us know if you have any further questions or if there’s anything else we can help you with.
Best regards, Left4code Team
Hi Team,
Although I tried to using inject(“forceActiveMenu”)(“page-name”), it did not work in TypeScript.
Thank you.