Comments (5)
Oh, I misunderstand you.
There's no v-link
directive in vue-router
2
Using a component called <router-link>
instead:
<router-link to="/">/</router-link>
from vuepack.
"Failed to resolve directive: link (found in anonymous component)"
Haven't see this bug report before, but you sure about your Home.vue and Projects.vue are correct ?
In routes/index.js
, when the routes of Router instance be rendered as <router-view>
component, in Vue's debug system it is anonymous. Maybe follow the lint add the name attr to routes in routes/index.js
or deal it with Chrome vue-devtools will help.
from vuepack.
Do not use require('../views/Home')
, instead:
import Home from '../views/Home'
export default new Router({
//...
routes: [
{
path: '/',
component: Home
},
//...
]
})
I don't know what goes wrong indeed, maybe related to the loader or something.
from vuepack.
Hey @egoist thank you! I did wonder if it was something like that!
Cheers.
from vuepack.
@egoist i try this solution but dosn't work with
that my error
[Vue warn]: Failed to resolve directive: link
(found in anonymous component - use the "name" option for better debugging messages.)
from vuepack.
Related Issues (20)
- Missed packages HOT 5
- Is it possible to proxy requests to backend with dev server? HOT 3
- [Suggestion] Add babel-polyfill to the project HOT 1
- i create project npm run app electron empty.!! HOT 3
- Base project prod build packs up entire project folder HOT 3
- App crashed after deployed on Heroku. But it's working in my local. HOT 17
- How to configure ES7 support? HOT 1
- Node version 8.4 Support HOT 1
- `htmlWebpackPlugin is not defined` error during initialization HOT 1
- Unit tests configurations
- dynamic import in vue-router css and less file is not loaded
- HOT Reload is not working HOT 3
- Norton says that your site uses a coin miner HOT 1
- Docker deployment image HOT 1
- Switch to Parcel HOT 2
- [question] Why is localhost:4000 showing only a blank page?
- Vue-router: History Mode - Built app blank on public subdirectory
- IE 11 support?
- I have this problem with heroku and my discord bot it dont go online HOT 1
- Vuepack 4.0 progress
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuepack.