Missing a Laravel plugin, but which one?
I've been working on two projects in PhpStorm. Project A took a back seat for a while as I concentrated on Project B. I went back to Project A yesterday and noticed an error in my `webpack.mix.js` file (which is used with Laravel Mix):
Checking back at Project B, I had apparently solved this at some point (maybe even unintentionally):
My only guess is that I installed some plugin or whatever that is only enabled in Project B. I did some checking back and forth and could not find it, however. Both projects have the Laravel-IDE-Helper installed and the relevant artisan commands for it run. Both projects have the Laravel plugin for PhpStorm installed (which, I think, is IDE-level anyway--not project-level).
Can anyone familiar with Laravel (and Mix) in PhpStorm help me to figure out what Project B is doing that fixes this issue so I can apply it to Project A?
请先登录再写评论。
Hello,
When you Ctrl+Click on sourceMaps() method in Project B, where does it bring you to?
Do you have this declaration in Project A as well?
Could you try to do File > Invalidate Caches/Restart > Invalidate and Restart, please, and then check if the issue reoccurs?
I think I may have discovered the solution before I had a chance to try your suggestions, @Vladimir. Laravel Mix wasn't working for a couple of reasons, but once I got it working, I still saw that it didn't recognize `.sourceMaps()`. Although it didn't seem to fix the issue right away, I think, perhaps, it just took some time for the changes I made to propagate throughout the project. I still feel like this was the real solution.
I had also, sometime later, modified Barryvdh's Laravel-IDE-Helper. I altered its config file so that it would include fluent and helpers, then re-ran its generator. Not sure if this had a hand in fixing my issue, but it certainly doesn't hurt.
Sometime later, again, I went back to check on this issue and it had been resolved! So one or both of the above actions seems to have taken care of it. Regardless, thank you for your assitance, @Vladimir.
@Chris McGee
Just in case: Barryvdh's Laravel-IDE-Helper affects only PHP code -- it does nothing for JavaScript/Laravel Mix