Coder Social home page Coder Social logo

Error by importing lib about vuetify-extra HOT 7 CLOSED

menteora avatar menteora commented on July 20, 2024
Error by importing lib

from vuetify-extra.

Comments (7)

menteora avatar menteora commented on July 20, 2024

Hi @ricardo17coelho, I've only one doubt:

On my project:

npm install /path/to/vuetify-extra.git

Have you tried npm install @menteora/vuetify-extra ?

L.

from vuetify-extra.

ricardo17coelho avatar ricardo17coelho commented on July 20, 2024

Hi @menteora ,

No, I don't
But is possible to install it local or not ?

from vuetify-extra.

menteora avatar menteora commented on July 20, 2024

Yes, I've lost a lot of hours to find correct way to do this. 😅

Use npm run build:local

On package.json uses npm pack under the hood:

"build:local": "vue-cli-service build --target lib --name menteora src/plugin.js && npm pack",

and in your project use:

npm install /path/to/<libraryname>-<version>.tgz

NOTE: Not use npm link for this purpose, creates a lot of strange errors based on dependencies. 😵

from vuetify-extra.

ricardo17coelho avatar ricardo17coelho commented on July 20, 2024

npm install /path/to/<libraryname>-<version>.tgz

this method works, but own css into the components (code is into the generated css file) was not imported.

from vuetify-extra.

menteora avatar menteora commented on July 20, 2024

I use vuetify css.

You can use loader, see quickstart : https://vuetifyjs.com/en/getting-started/quick-start

Or import manually:

import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'

from vuetify-extra.

ricardo17coelho avatar ricardo17coelho commented on July 20, 2024

i mean own css from components. Not css from VUETIFY.

i have created a project with

vue create myProject

and than:

vue add vuetify

That means that vuetify is already global installed/imported and i don't need to import Vuetify css
but myComponent CSS was no imported into the project.

from vuetify-extra.

menteora avatar menteora commented on July 20, 2024

Sorry, but my project work with Vuetify css, I've not tested with custom css, It's not my target at the moment.

If you want import your custom css I think you can import '@menteora/vuetify-extra/dist/menteora.css' (follow the path of css inside node_module)

from vuetify-extra.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.