We help IT Professionals succeed at work.
Get Started

Does "js-components" get created automatically when you import the "vue" package?

Bruce Gust
Bruce Gust asked
on
75 Views
Last Modified: 2019-11-28
I'm working through this tutorial: https://www.youtube.com/watch?v=DJ6PD_jBtU0

At one point, it asks you to do an "npm install" and you're loading up these dependencies:

  "devDependencies": {
        "axios": "^0.19",
        "cross-env": "^5.1",
        "laravel-mix": "^4.0.7",
        "lodash": "^4.17.13",
        "resolve-url-loader": "^2.3.1",
        "sass": "^1.15.2",
        "sass-loader": "^7.1.0",
        "vue-template-compiler": "^2.6.10"
    }

Not more than a couple of minutes later in the tutorial, it asks you to go to the "resources -> assets -> js -> components" directory and create a .vue file.

The folder doesn't exist. There is no "components" directory and I'm wondering, since the tutorial didn't specify creating it if perhaps something was supposed to happen when I did the "npm install."

I can obviously create it, but I'm new to Laravel and I'm wondering if the "vue-template-compiler" wasn't supposed to create that and something went wrong.

Does "assets ->js-components" get created when you load in the .vue dynamic? Or can I just create that myself and Laravel will know to refer to that when I start creating the .vue files?
Comment
Watch Question
Multitechnician
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This problem has been solved!
Unlock 2 Answers and 5 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE