GithubHelp home page GithubHelp logo

CSS not loaded about bloomer HOT 8 CLOSED

algusdark avatar algusdark commented on May 21, 2024
CSS not loaded

from bloomer.

Comments (8)

sandalsoft avatar sandalsoft commented on May 21, 2024 7

For those having a similar issue with the CSS not rendering when using create-react-app, this is the import that fixed it for me:

import 'bulma/css/bulma.css';

Referenced here: jgthms/bulma#388 (comment)

from bloomer.

AlgusDark avatar AlgusDark commented on May 21, 2024

from bloomer.

kaspermarstal avatar kaspermarstal commented on May 21, 2024

Appreciate the quick response. How do I load Bulma with import? Could not find it in your otherwise excellent documentation. A naive approach like import 'bulma' or import 'bulma/css/bulma does not work.

from bloomer.

AlgusDark avatar AlgusDark commented on May 21, 2024

Well... That's weird.

If you're using SASS, you can import modules like:

@import "bulma/sass/utilities/_all"
@import "bulma/sass/grid/columns"

If not, import 'bulma/css/bulma' should work. Do you have an example nextjs repo where I can test this? I've never tried next but I can try now igual you help me with that :)

from bloomer.

kaspermarstal avatar kaspermarstal commented on May 21, 2024

Sure! Here it is: https://github.com/kaspermarstal/x-rai-website. Run npm install and npm run dev. The website is styled because of the link rel. You can remove this line and uncomment the import to see the error.

from bloomer.

AlgusDark avatar AlgusDark commented on May 21, 2024

Hey, this seems to be a configuration error.

You may need an appropriate loader to handle this file type

So, you need something for Next like css-modules.

Please check this thread.

Once that you have the correct loader, you're going to be able to import bulma css.

I'm going to close this issue since this is only a configuration problem with Next.js.

Please tell us if you found your solution :)

from bloomer.

kaspermarstal avatar kaspermarstal commented on May 21, 2024

Thanks will try that and let you know!

from bloomer.

srikrsna avatar srikrsna commented on May 21, 2024

@kaspermarstal Could you get this to work?

from bloomer.

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.