-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"fs" dependency was not found? #39
Comments
I added
to my webpack config to resolve the error |
I have the same issue. Don't have a webpack.config in my gatsby, not sure how to add @zlokomatic 's code / how to add a webpack.config... |
I just reverted back to the stable build. @spiraljacobs you can excess Gatsby's Webpack config in the gatsby-node.js file |
@Risto-Mcintosh thanks! Got it working with @zlokomatic's suggestion. |
@spiraljacobs that's great! I'll use it on my next project The build I was referring to is the one that only supports Tailwind v0.7.x |
This appears to be due to Tailwind CSS's use of https://www.gitmemory.com/issue/TVke/react-native-tailwindcss/7/523364996 @zlokomatic 's solution above works, which to clarify means adding this to your exports.onCreateWebpackConfig = ({actions, getConfig}) => {
// Hack due to Tailwind ^1.1.0 using `reduce-css-calc` which assumes node
// https://github.com/bradlc/babel-plugin-tailwind-components/issues/39#issuecomment-526892633
const config = getConfig();
config.node = {
fs: 'empty'
};
}; The only other thing that could help is if |
What is the suggestion here? To only use Tailwind |
@n0k5 I updated my answer to be more specific. |
Thanks @khalwat — the missing thing there for me was the |
@zlokomatic Thanks for the fix. Can you tell me where it should be added in the webpack config? |
I'm trying to 1.0.0-alpha.10 in Gatsby but I keep getting this error
My code is
babel-plugin-macros.config.js
The text was updated successfully, but these errors were encountered: