Duplicate Script Tag In Blade.php File

- 1 answer

I'm using PhpStorm 2019.3.1 and I see this error. How to fix this problem?

Duplicate tag error



It's a bug in IDE (in one of the bundled plugins to be precise). To get rid of it you would have to disable Vue.js plugin (worked well for me, especially since I do not use Vue)... -- watch this ticket (star/vote/comment) to get notified on any progress.

As per @lena comment: as a workaround, you can disable Vue | Duplicate template/script tag inspection in Settings/Preferences | Editor | Inspections

P.S. This issue can be reproduced with any project with vue npm package installed.

If you do not use Vue in your projects, I guess getting rid of package.json or at very least vue entry from there should also do the trick.

UPDATE 2020-03-05:
The aforementioned ticket is now marked as fixed for 2020.1 version.