Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsconfig for vue-project in subfolder #2393

Closed
3 tasks done
bylmzio opened this issue Oct 21, 2020 · 3 comments
Closed
3 tasks done

jsconfig for vue-project in subfolder #2393

bylmzio opened this issue Oct 21, 2020 · 3 comments
Labels

Comments

@bylmzio
Copy link

bylmzio commented Oct 21, 2020

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: WSL2
  • Vetur version: 0.28
  • VS Code version: 1.50.1

Problem

I have laravel-project and inside this project is a folder frontend, where i have a vue project.
This vue project is generated by vue-cli.

 Laravel
 - app
 - bootstrap
 ...
 - frontend <!-- vue-cli generated -->
 -- src
 - public
 - resources
 ...
 - jsconfig.json

I am opening the whole project.
So i created at top level jsconfig file with:

{
    "include": ["./frontend/src/**/*"],
    "compilerOptions": {
        "baseUrl": ".",
        "paths": {
            "@/*": ["frontend/src/*"]
        }
    },
    "exclude": ["./frontendnode_modules"]
}

But i didnt get intellisense to work.

@yoyo930021
Copy link
Member

You need to create jsconfig.json and package.json in frontend/src/.
After that open frontend/src folder in VSCode.

@yoyo930021
Copy link
Member

More advanced support will need to wait for this RFC and RFC.

@bylmzio
Copy link
Author

bylmzio commented Oct 21, 2020

You need to create jsconfig.json and package.json in frontend/src/.
After that open frontend/src folder in VSCode.

Ok, thanks.

@bylmzio bylmzio closed this as completed Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants