1

What is the proper way to import VueJs into my javascript file using NPM? I am getting a Vue is not defined error.

1 Answer 1

3

First, install the package:

$ npm install vue

And then import it in whatever file you want to use Vue:

import Vue from 'vue'
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you!! I will accept this answer as soon as Stack Overflow allows me. @thanksd

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.