As I venture into setting up a project with webpack and Vue 2.0, I encountered a slight hiccup when trying to incorporate components from npm packages (such as vue-parallax) into my project.
Upon installing the package, everything seems to be in place, but I am struggling to identify where it is linked within my project structure.
My suspicion is that I may be missing the import statement for 'parallax' in the script tag, although this is just an assumption based on what I know.
I would greatly appreciate any assistance on this matter.
<template>
<div id="app">
<img src="./assets/logo.png">
<hello></hello>
<parallax src=require('../assets/logo.png')></parallax>
</div>
</template>
<script>
import Hello from './components/Hello'
//import parallax ?
export default {
name: 'app',
components: {
Hello,
parallax
}
}
</script>
<style>
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>