Giter VIP home page Giter VIP logo

Comments (5)

johnkmzhou avatar johnkmzhou commented on August 30, 2024 1

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.

httpsterio avatar httpsterio commented on August 30, 2024

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.

ttntm avatar ttntm commented on August 30, 2024

Hi, thanks for opening this issue.

Just tested myself and getting the same error if I do the following:

  1. use the template = fork into a new repo
  2. clone locally
  3. npm install
  4. 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.

johnkmzhou avatar johnkmzhou commented on August 30, 2024

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.

ttntm avatar ttntm commented on August 30, 2024

Wow, thanks @johnkmzhou!

I'll update the config and publish a fix commit asap.

from 11ty-landing-page.

Related Issues (4)

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.