Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

router-link -> Uncaught Error: undefined is not allowed for styled tag type. #124

Open
jarayabozo opened this issue Mar 23, 2021 · 0 comments

Comments

@jarayabozo
Copy link

jarayabozo commented Mar 23, 2021

I'm trying to style the vue slide up down component and am having issues doing so. My code is as follows.

import Vue from 'vue';
import styled from 'vue-styled-components';

const RouterLink = Vue.component('router-link');

const NavbarLink = styled(RouterLink)`
  color: palevioletred;
  font-size: 1em;
  text-decoration: none;
`;

export default NavbarLink;

Error:

vue-styled-components.es.js?9c56:3112 Uncaught Error: undefined is not allowed for styled tag type.
    at styled (vue-styled-components.es.js?9c56:3112)
    at eval (navbar-link.style.js?5592:6)
    at Module../src/components/elements/navbar-link.style.js (app.js:1196)
    at __webpack_require__ (app.js:854)
    at fn (app.js:151)
    at eval (cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=script&lang=js&:3)
    at Module../node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=script&lang=js& (app.js:1007)
    at __webpack_require__ (app.js:854)
    at fn (app.js:151)
    at eval (App.vue?c53a:1)

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant