Category «VueJs»

Vue/React migration to another server npm run watch error

to fix it: npm i node-sass ERROR in ./resources/sass/tool.scss Module build failed: ModuleBuildError: Module build failed: Error: Missing binding /xxx/laravel/nova-components/MoreReports/node_modules/node-sass/vendor/darwin-x64-67/binding.node Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 11.x Found bindings for the following environments: – OS X 64-bit with Node.js 8.x This usually happens because your environment …

Sort by field/column of Vue JS data for Laravel Nova

<template> <divv-on:click=”$emit(‘sort-list’, 0.1)”role=”button”class=”sortable-title”> <spanclass=”title”v-html=”title”></span> <spanv-if=”order_type==’desc'”><iclass=”fa fa-arrow-circle-down”aria-hidden=”true”></i></span> <spanv-if=”order_type==’asc'”><iclass=”fa fa-arrow-circle-up”aria-hidden=”true”></i></span> <spanv-if=”order_type==null”><iclass=”fa fa-sort”aria-hidden=”true”></i></span> </div> </template> <script> export default { props: [ ‘title’, ‘order_type’, ], data() { return { // } }, mounted() { // }, methods: { // }, } </script>   Use it in the parent component: import SortableField from “./SortableField” export default { components :{ SortableField …