0

I have Vue file:

<template>
    <div class="card">
        <img :src="file" alt=""/>
    </div>
</template>

<script>
    export default {
        name: 'card',
        data() {
            return {
                file : 'assets/images/playingCards/backSide.jpg'
            }
        }
    };
</script>

But inspection in PhpStorm gives me warning in :src directive:

This inspection checks unresolved file references in HTML.

I've tried removing : from src (so classic html) and write path with PhpStorm autocomplete (to be 100% sure validity path) and this value bind in data() to key file... but problem persist.

How to tell PhpStorm about vue and directive? (I don't want turn off check for file references)

1 Answer 1

1

It's a known issue: WEB-42737. Please follow it to be notified on updates.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.