outl1ne / nova-multiselect-filter

Multiselect filter for Laravel Nova.
MIT License
40 stars 16 forks source link

trying to fork and build and can't find laravel-nova-filterable #24

Closed vesper8 closed 3 hours ago

vesper8 commented 4 hours ago

I've search for this string laravel-nova-filterable in Laravel Nova 4.35 and it does not appear to exist (anymore?)

I also can't find any info at all about this ever being a thing online.. am I missing something obvious?

Thanks

vesper8 commented 3 hours ago

Figured it out, had to modify the paths inside the webpack.mix.js file because my fork isn't in the same location as your package normally is. This worked for my use-case:

  .alias({
    'lodash/identity': path.join(__dirname, 'node_modules/lodash/identity.js'),
    'lodash/pickBy': path.join(__dirname, 'node_modules/lodash/pickBy.js'),
    'vuex': path.join(__dirname, 'node_modules/vuex/dist/vuex.esm-browser.js'),
    'laravel-nova-filterable': path.join(
      __dirname, //
      '../../../vendor/laravel/nova/resources/js/mixins/Filterable.js'
    ),
    'laravel-nova-interacts-with-query-string': path.join(
      __dirname, //
      '../../../vendor/laravel/nova/resources/js/mixins/InteractsWithQueryString.js'
    ),
  })