Comments (6)
fixed for me by updated gatsby-config.js
from:
{
resolve: `gatsby-plugin-sass`,
options: {
postCssPlugins: [require('tailwindcss'), require('./tailwind.config.js')]
}
},
to:
{
resolve: `gatsby-plugin-sass`,
options: {
postCssPlugins: [require('tailwindcss')('./tailwind.config.js')]
}
},
from tailwindcss-custom-forms.
Example Repo
https://github.com/jaobrown/gatsby-tailwind-custom-forms
@adamwathan error appears in this repo.
Steps to reproduce
- Clone repo
- npm install
- npm start
Expected result
Server runs
Results
ERROR #98123 WEBPACK
Generating development JavaScript bundle failed
theme is not a function
File: src/styles/main.scss
failed Building development bundle - 9.105s
from tailwindcss-custom-forms.
I put
plugins: [
require('@tailwindcss/custom-forms')
]
on tailwind.config.js
instead of postcss.config.js
and works for me 🎉
from tailwindcss-custom-forms.
I'm having the same issues.
from tailwindcss-custom-forms.
tailwindcss v 1.5 - same here
from tailwindcss-custom-forms.
Can someone share a simple GitHub repo that reproduces the issue? Better chance of me being finding 5 minutes to be able to look at it if I have a starting point instead of having to set it up from scratch.
from tailwindcss-custom-forms.
Related Issues (20)
- Installation failed HOT 1
- Style input for datalist
- Ability to render `icon` on unchecked radios and checkboxes
- Custom-forms with applyComplexClasses on shows focus state as default state HOT 1
- Custom forms larger than tailwindcss due to lodash
- Allow styling of checkboxes using the text-color classes HOT 1
- important : true is not suppurted HOT 1
- Checkbox a11y HOT 2
- Custom Forms not recompiling when making changes in tailwind config HOT 1
- Safari not picking up custom checkbox HOT 3
- states (focus, hover) not working HOT 1
- is it possible to change the color of the external border of the radio icon
- Issue when upgrading to TW v2 HOT 7
- How can I customize the background size of a radio icon?
- Could not find a declaration file for module '@tailwindcss/custom-forms' HOT 1
- Difference between this and @tailwindcss/forms? HOT 5
- Can't change default borderWidht of select html element.
- Form input fields are not showing in modal.
- form-* dos not apply all styles HOT 3
- 8 HOT 1
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 tailwindcss-custom-forms.