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

Cant get styles to load #351

Open
FuriousLlama opened this issue Jan 19, 2023 · 3 comments
Open

Cant get styles to load #351

FuriousLlama opened this issue Jan 19, 2023 · 3 comments

Comments

@FuriousLlama
Copy link

Followed the steps outlined. Components seem to be loaded, but the styles are missing or not being rendered.

<q-button>Primary</q-button>
      <q-button theme="secondary">Secondary</q-button>
      <q-button theme="link">Link</q-button>
      <q-button loading>Primary</q-button>

image

@cheesytim
Copy link
Member

Hi, @FuriousLlama, can you show your full setup code?

@FuriousLlama
Copy link
Author

FuriousLlama commented Jan 19, 2023

Sure thing @Tim152 :
package.json

{
  "name": "my-website",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "@qvant/qui-max": "0.18.0",
    "vue": "^3.2.13",
    "vue-class-component": "^8.0.0-0",
    "vue-router": "^4.0.3",
    "vuex": "^4.0.0"
  },
  "devDependencies": {
    "@typescript-eslint/eslint-plugin": "^5.4.0",
    "@typescript-eslint/parser": "^5.4.0",
    "@vue/cli-plugin-eslint": "~5.0.0",
    "@vue/cli-plugin-router": "~5.0.0",
    "@vue/cli-plugin-typescript": "~5.0.0",
    "@vue/cli-plugin-vuex": "~5.0.0",
    "@vue/cli-service": "~5.0.0",
    "@vue/eslint-config-typescript": "^9.1.0",
    "eslint": "^7.32.0",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-prettier": "^4.0.0",
    "eslint-plugin-vue": "^8.0.3",
    "prettier": "^2.4.1",
    "typescript": "~4.5.5"
  }
}

main.ts

import { createApp } from "vue";
import Qui from "@qvant/qui-max";
import '@qvant/qui-max/styles';

import App from "./App.vue";
import router from "./router";
import store from "./store";


const app = createApp(App);
app.use(Qui);

app.use(store);
app.use(router);

app.mount("#app");

Everything else is the default of the vue-cli setup.
Please let me know if you need any additional information

@cheesytim
Copy link
Member

@FuriousLlama
it's working in sandbox https://codesandbox.io/s/upbeat-wood-1egosc

Do you have some console/app errors ?
Have you tried reinstall node_modules with removing package.lock | yarn.lock ?

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

2 participants