So it seems that the troublesome dependency is related to early versions of laravel-mix. I've got around it with the following work-around.
php artisan nova:resource-tool acme/stripe-inspector
Would you like to install the tool's NPM dependencies? (yes/no) [yes]:
> no
Would you like to compile the tool's assets? (yes/no) [yes]:
> no
Would you like to update your Composer packages? (yes/no) [yes]:
> yes
--- snip ---
Then in your tool change package.json to
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"prod": "npm run production",
"production": "mix --production"
},
"devDependencies": {
"laravel-mix": "^6.0",
"resolve-url-loader": "^5.0.0",
"sass": "^1.49.7",
"sass-loader": "^12.6.0"
},
"dependencies": {
"vue": "^3.2"
}
}
and add .vue() to webpack.mix.js in the tool
let mix = require('laravel-mix')
mix
.setPublicPath('dist')
.js('resources/js/tool.js', 'js')
.sass('resources/sass/tool.scss', 'css')
.vue()
now update the packages from the site root
npm run build-stripe-inspector
composer update