Skip to content

Can't use Vue Dev Tools with Nova and newer version of Node #5822

@amirshawn

Description

@amirshawn
  • Laravel Version: 10.19
  • Nova Version: 4.27.12
  • PHP Version: 8.1.18
  • Database Driver & Version:
  • Operating System and Version: Mac OS
  • Browser type and version: #.#
  • Reproduction Repository: https://github.com/###/###

I am trying out Nova for the first time. It looks like by default you can't use vue dev tools with Nova. I keep seeing that I should compile the nova assets like so:
cd ./vendor/laravel/nova
mv webpack.mix.js.dist webpack.mix.js
npm i
npm run dev
rm -rf node_modules
cd -
php artisan nova:publish

When I do this I get a bunch of errors during the compile process and then when I go to the browser I have this error:
Unable to locate Mix file: /app.css. (View: ***/vendor/laravel/nova/resources/views/layout.blade.php)

I think this may be because I am using a new version of Node

By putting a postcss.config.js in the nova folder I was able to compile without errors.

module.exports = {
plugins: [
require('autoprefixer'),
],
};

Then running
rm -rf node_modules
cd -
php artisan nova:publish
I am able to use vue dev tools.

I don't have a ton of experience so I was hoping someone could take a look and put a fix in future versions so when I update next time it will work correctly.

Detailed steps to reproduce the issue on a fresh Nova installation:

Try compiling Nova assets using a new version of Node

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions