Issue with Blade and VUE

PhpStorm 2018.2.4
Build #PS-182.4505.42, built on September 27, 2018
Licensed to **********
Subscription is active until February 14, 2019
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

/////////////////////////////////////////////////////////////////////////////////////////////

Good afternoon
I have the following problem
When using a vue component in a blade template, I get the following errors:

On the other hand I have this problem in my .vue file

The code works fine since I load the page and everything works ok
Attached picture of the libraries:

I have the vue and laravel plugin correctly installed and blade works well for me, it's only when I add {{phpCode}} to the value of the vue component attribute.

Any help will be welcome

Thank you.

13 comments
Comment actions Permalink

That's a known issue: https://youtrack.jetbrains.com/issue/WI-42395

Unfortunately it's not addressed and no workarounds available a.t.m. 

0
Comment actions Permalink

And the issue in the .vue file is also a known issue?

0
Comment actions Permalink

Can't recreate - Vue methods are correctly resolved and suggested by completion:

 

What Vue.js version do you use? Do you have node_modules/vue/types/vue.d.ts included in your project (make sure that node_modules/vue is not marked excluded, and that your Vue.js version included vue typings)?

0
Comment actions Permalink

.

How can check if node_modules/vue is excluded?

Thank you very much.

 

0
Comment actions Permalink

I'm using exactly same vue version; not sure if yours is included (due to folders coloring used by your theme plugin, it's not quite clear what folders are actually included), but seems it is... Not sure why there is a 'library root' mark next to vue - it's normally shown for node_modules folder, as it's used as a library root by default. What do your javascript libraries and PHP include paths look like? Can be related to https://youtrack.jetbrains.com/issue/WEB-33211

0
Comment actions Permalink

Okay. I have included the node_modules folder and the vue folder, and now it sends me the following message:

0
Comment actions Permalink

Try ctrl+clicking on Vue and component - what definitions are you taken to?

0
Comment actions Permalink

I have run npm run watch and again the error from before ...

0
Comment actions Permalink

I have no idea how running the npm script can affect this... If the issue persist after caches invalidation, please share a sample project that can be used to recreate it

0
Comment actions Permalink

I have invalidated the cache and now it is correct again. This is what I get when I ctrl + click in component:

0
Comment actions Permalink

thanks, recreated; logged as https://youtrack.jetbrains.com/issue/WEB-35288, please follow it for updates

0
Comment actions Permalink

Thank you very much.

0

Please sign in to leave a comment.