Comments (5)
It works up to 2.1.4. It looks like when this PR was added to 2.2.0 it broke something: tailwindlabs/tailwindcss#4232
from 11ty-landing-page.
Doesn't build on Netlify either.
> Having trouble rendering 11ty.js template ./src/css/page.11ty.js
`TemplateContentRenderError` was thrown
> Cannot convert undefined or null to object
`TypeError` was thrown:
TypeError: Cannot convert undefined or null to object
at Function.entries (<anonymous>)
at matchUtilities (/home/sami/projects/11ty-landing-page/node_modules/tailwindcss/lib/util/processPlugins.js:131:37)
at /home/sami/projects/11ty-landing-page/node_modules/tailwindcss/lib/plugins/blur.js:15:5
at /home/sami/projects/11ty-landing-page/node_modules/tailwindcss/lib/util/processPlugins.js:99:5
at Array.forEach (<anonymous>)
at _default (/home/sami/projects/11ty-landing-page/node_modules/tailwindcss/lib/util/processPlugins.js:93:11)
at /home/sami/projects/11ty-landing-page/node_modules/tailwindcss/lib/processTailwindFeatures.js:64:54
at LazyResult.runOnRoot (/home/sami/projects/11ty-landing-page/node_modules/postcss/lib/lazy-result.js:339:16)
at LazyResult.runAsync (/home/sami/projects/11ty-landing-page/node_modules/postcss/lib/lazy-result.js:391:26)
at async module.exports.render (/home/sami/projects/11ty-landing-page/src/css/page.11ty.js:18:12)
from 11ty-landing-page.
Hi, thanks for opening this issue.
Just tested myself and getting the same error if I do the following:
- use the template = fork into a new repo
- clone locally
npm install
npm run serve
It seems to be caused by something that's changed in Tailwind, workaround is installing the version that this template was built with originally: np install [email protected]
- if you do that, it builds without any errors.
No idea what has changed in [email protected], so I'm leaving this issue open as a reminder.
from 11ty-landing-page.
It turns out the problem was that the tailwind.config.js was missing properties like saturate and sepia. Diffing against https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/defaultConfig.stub.js will give an idea of what's missing.
from 11ty-landing-page.
Wow, thanks @johnkmzhou!
I'll update the config and publish a fix commit asap.
from 11ty-landing-page.
Related Issues (4)
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 11ty-landing-page.