Giter VIP home page Giter VIP logo

Comments (8)

Wikiki avatar Wikiki commented on August 16, 2024

Hi @Rickem,

You forgot the tild in your import:
@import '~bulma'

Without it, it's not going to import from node modules but from current path.

Regards

from bulma-extensions.

Wikiki avatar Wikiki commented on August 16, 2024

Hi @Rickem,

is it working now ?

from bulma-extensions.

abadilah1 avatar abadilah1 commented on August 16, 2024

it doesn't work on angular 7

from bulma-extensions.

Wikiki avatar Wikiki commented on August 16, 2024

Could you please share a boilerplate Angular 7 project including the extension with me ?So I'll be able to try to find out what's wrong (I'm not an Angular guy but I'll try to find something)

from bulma-extensions.

abadilah1 avatar abadilah1 commented on August 16, 2024

so after adding both the css and js files in my Angular.json, i imported the bulmaCarousel in my HeaderComponent.ts as ''import { bulmaCarousel } from 'bulma-carousel/dist/js/bulma-carousel.min.js';''
and initilize the .attach method as ''public carousels = bulmaCarousel.attach('.carousel');''
so i got this error back => ''ERROR TypeError: Cannot read property 'attach' of undefined''

from bulma-extensions.

Wikiki avatar Wikiki commented on August 16, 2024

And you have no error with the line import { bulmaCarousel } from 'bulma-carousel/dist/js/bulma-carousel.min.js'; ?
It's weird that bulmaCarousel object is undefined after importing it.

Please try importing from src folder instead of dist and tell me the result.

from bulma-extensions.

abadilah1 avatar abadilah1 commented on August 16, 2024

I used npm to install the package so definitely it is only dist folder I will have which is from the node_modules directory, I don't have the src folder

from bulma-extensions.

abadilah1 avatar abadilah1 commented on August 16, 2024

Angular has so many possible ways to use, so if you have any better option just help with the steps pls, i think that's the best thing to do

from bulma-extensions.

Related Issues (20)

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.