Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

Yuk Tang
Yuk Tang
3,464 Points

Vue and Visual Studio Code Intellisense

When I enter new Vue() in app.js, VS Code does not recognise the keyword Vue, but suggests VTTCue instead. Is there a setting or extension that I need for VS Code to recognise Vue?

Yuk Tang
Yuk Tang
3,464 Points

Entering the code exactly as is does not work, as it looks like the Vue object is not recognised. I am in the Hello Vue lesson on the Vue.js Basics course.

2 Answers

Yuk Tang
Yuk Tang
3,464 Points

My eventual workaround was to open the js file in Notepad and add a new Vue declaration there. Once the initial declaration is made, VS Code recognises Vue as an object.

Yuk Tang
Yuk Tang
3,464 Points

I found a video titled "Setup Vue.js Dev Environment from Scratch" which has solved all problems.