Skip to content
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

Cannot build on WSL2 and Ubuntu #2

Closed
httpsterio opened this issue Jun 19, 2021 · 5 comments
Closed

Cannot build on WSL2 and Ubuntu #2

httpsterio opened this issue Jun 19, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@httpsterio
Copy link

httpsterio commented Jun 19, 2021

When running npm run serve after doing a npm install, the build throws an error on writing the Eleventy templates.

page.11ty.js fails at some point. By removing the postcss plugins it will run successfully but obviously the CSS won't work.

When the Readme.md says that Tailwind is one of the dependencies, what does that actually mean? Does it need to be installed separately or is it included with the npm install or fetched and installed via postcss?

@httpsterio
Copy link
Author

httpsterio commented Jun 20, 2021

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)

@ttntm
Copy link
Owner

ttntm commented Jun 20, 2021

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 tailwindcss@2.0.4 - if you do that, it builds without any errors.

No idea what has changed in Tailwind@2.2.2, so I'm leaving this issue open as a reminder.

@ttntm ttntm self-assigned this Jun 20, 2021
@ttntm ttntm added the broken dependency A broken dependency label Jun 20, 2021
@johnkmzhou
Copy link

johnkmzhou commented Jul 10, 2021

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

@johnkmzhou
Copy link

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.

@ttntm
Copy link
Owner

ttntm commented Jul 13, 2021

Wow, thanks @johnkmzhou!

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

@ttntm ttntm added bug Something isn't working and removed broken dependency A broken dependency labels Jul 13, 2021
@ttntm ttntm closed this as completed in df14560 Jul 13, 2021
gsteve3 pushed a commit to dalyle/dalyle_ca_tomdoe that referenced this issue May 19, 2022
Before it wanted something aftrer the / (e.g. `https://status.dalyle.ca/asdf`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants