Code Monkey home page Code Monkey logo

Comments (6)

couds avatar couds commented on June 8, 2024 5

Hi @stefl

If you are still interested. I just released a new version (Still on pre-release) that fix allow this library to work properly with Next.js (commit c77aaf6)

Check it out in here

You need to update your sassLoaderOptions to include the path to your _variables.sass file and tell Next to that this library its already transpiled

const withSass = require('@zeit/next-sass')
const withTM = require('next-plugin-transpile-modules');

module.exports = withTM(withSass({
    transpileModules: ['react-bulma-components'],
    sassLoaderOptions: {
        includePaths: ["./src"]
    },
}))

Hope this help, and sorry for the long wait

from react-bulma-components.

couds avatar couds commented on June 8, 2024

Hi @stefl I didn't test it on next.js I will try to test your repo during the week if I can fix some time.

from react-bulma-components.

stefl avatar stefl commented on June 8, 2024

@couds Great, thanks. I just saw your reply to another issue, that including each module separately is why there's this call to the ~_variables.sass file, and you can import the entire project instead to avoid that.

I wonder if there's a way of specifying a path to that file using an environment variable instead of having to use webpack aliases?

from react-bulma-components.

couds avatar couds commented on June 8, 2024

Hi @stefl I don't think we can use a environment variable for that, at least I didn't found a way to do it. =(

from react-bulma-components.

paulussimanjuntak avatar paulussimanjuntak commented on June 8, 2024

hi @couds
I'm trying to follow the instruction but it's still not working for now, is there anything that needs to be set again besides following the instructions above?

It still not working I install Next.js app and follow the instruction above, but still error

from react-bulma-components.

alexander-sakal avatar alexander-sakal commented on June 8, 2024

Hi @couds I have the same issue.

from react-bulma-components.

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.