Comments (6)
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.
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.
@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.
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.
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.
Hi @couds I have the same issue.
from react-bulma-components.
Related Issues (20)
- [a11y] Modal close button is not accessible
- Support for 0.9.4
- In ts, the align of NavbarContainerProps is limited to left or right.
- Amazing. Any plans for React Native ? HOT 2
- [HELP] Unable to use ButtonGroup HOT 1
- Tab switching HOT 2
- Input component is missing rounded prop in TypeScript type definition
- ImageProps error when compiling typescript project. HOT 2
- Content is not working with dynamic content HOT 3
- Navbar.Item is missing arrowless prop in typescript
- [HELP] compile for browser only HOT 4
- renderAs button props not supporting onClick prop
- ColumnSize Typescript definition is not exported
- defaultProps on function components is deprecated HOT 1
- Can't use Navbar in Next.js server component HOT 1
- Form.InputFile is missing name typescript definition
- Can't find declaration types if importing library as ESM
- nextjs `basePath` not applied on Navbar.Item HOT 2
- Form.Input typing explicitly does not contain renderAs
- [HELP] Project Abandoned? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-bulma-components.