If you're using Typescript like I am, then you need to import assets like so: You can also use the root shortcut like so. I think this should be simple, but I am facing some trouble on how to import and use an image in Vue single file component. I came across this issue recently, and i'm using Typescript. It would be great if typedoc could extract the sections from a .vue file and produce docs for those. For Q1, put the Typescript code into a separate script.ts file and include it in App.vue like: < script lang = "ts" > import s from './script' export default s For Q2, as suggested by @Oswaldo, you can defined a vue.d.ts file that has the following content: . We also specified the appendTsSuffixTo: [/\.vue$/], option to ts-loader in our webpack.config.js file, which allows TypeScript to process the code extracted from a single file component. Single File Components(SFCs) are a style of application organization used by JavaScript UI libraries where each file represents a single component in all aspects. Vue’s ecosystem is being more TypeScript: *.vue file’s TypeScript lint in VSCode be supported. You can also update the props of an already-mounted component with the wrapper.setProps({}) method.. For a full list of options, please see the mount options section of the docs. Did the FAA license the Ingenuity helicopter to fly on Mars? By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Here is my code snippet: I have tried using :src, src="{{ zapierLogo }}", etc. and select the default options. I can use webpack or browserify to facilitate that, but I have never used those tools and don’t know how to combine them and pipe this all using gulp. If you think about a Component on your page, all it can be is the combination of three things, HTML which denotes its markup, javascript which denotes its behavior, and CSS styles which denotes its look. With .vue components, we’re entering the realm of advanced JavaScript applications. This will change App.vue back to being a TypeScript Single File Component (SFC):