protonemedia/inertiajs-tables-laravel-query-builder

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

grafxflow opened this issue · 1 comments

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

It seems the solution is to use the preview version.

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