protonemedia / inertiajs-tables-laravel-query-builder

Inertia.js Tables for Laravel Query Builder
https://protone.media/en/blog/introducing-inertiajs-tables-a-datatables-like-package-for-laravel-query-builder
MIT License
438 stars 127 forks source link

Getting several 'Module not found: Error: Can't resolve 'lodash-es' errors when compiling #95

Closed grafxflow closed 1 year ago

grafxflow commented 1 year ago

I have installed it without any problems but as soon as I add it to any vue file and run npm I get several errors outputted such as. I am using Laravel mix.

ERROR in ./node_modules/@protonemedia/inertiajs-tables-laravel-query-builder/dist/inertiajs-tables-laravel-query-builder.es.js 10:0-35
Module not found: Error: Can't resolve 'lodash-es/findKey' in 
Did you mean 'findKey.js'?
BREAKING CHANGE: The request 'lodash-es/findKey' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

Using:

Laravel 9.11 VueJS 3.2.31 Tailwindcss: 3.0.0

grafxflow commented 1 year ago

It seems the solution is to use the preview version.

"@protonemedia/inertiajs-tables-laravel-query-builder": "^2.0.0"