0

@vite('resources/js/app.js') is not working with all installations... it is not even showing and working

pakage.json

{
    "private": true,
    "scripts": {
        "dev": "vite",
        "build": "vite build"
    },
    "devDependencies": {
        "axios": "^0.27",
        "laravel-vite-plugin": "^0.5.3",
        "lodash": "^4.17.19",
        "postcss": "^8.1.14",
        "vite": "^3.0.7"
    },
    "dependencies": {
        "@vitejs/plugin-vue": "^3.0.3",
        "vue": "^3.2.36",
        "vue-loader": "^17.0.0"
    }
}
1
  • check in source page whether app.js include or not Commented Aug 14, 2022 at 8:38

1 Answer 1

1

There are a few things that can be going on. Here is some really nice and recent example of getting a laravel, vue, vite project off the ground from scratch. Check it out and make sure the files on question and those imported to those files have a similar structure as yours. And the flow is similar.

https://techvblogs.com/blog/spa-authentication-laravel-9-sanctum-vue3-vite

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.