Skip to main content


So, my attempt to upgrade #Eleventy for the first time in *cough*, *mumble*, erm, quite some time, is not going at all well. 😢
in reply to Eleventy 🎈 v3.0.0

@eleventy Thanks for asking 💜

I honestly don't know if you can help, but just in case the TLDR is that my website runs on Eleventy. It's all in GitHub. I've flattened my laptop since I last had Eleventy running, so now I'm trying to figure out how to get it all back up and running so I can update it. On Windows 11/Terminal.

If you know of a complete muppet's guide to this sort of thing, I'd be glad of it 😊

in reply to Léonie Watson

is your old version up and running? That’s important prior work before you upgrade!
in reply to Eleventy 🎈 v3.0.0

@eleventy Not yet. It seems I installed a version of Node that no longer supports `require`. Now trying to figure out if it's better to downgrade Node (using Terminal on Wn11) or update the JS.
in reply to Léonie Watson

it sounds like somehow your project was swapped to prefer ESM—this is not necessary with Eleventy 3.0!

Is there a type: module in your package.json? If so, I’d remove that and try again!

11ty.dev/docs/cjs-esm/

in reply to Eleventy 🎈 v3.0.0

@eleventy Thanks for more suggestions 😊

There isn't a type module in package.jason. The more I've investigated, the more I realise that everything is so horribly out of date, that it's way beyond my fu to figure out, so I think I need to call in the professionals.

Do you know of any 11ty capable freelancers I could hire to help me unscramble it by any chance - or a good way to find someone reliable?

Eleventy 🎈 v3.0.0 reshared this.

in reply to Léonie Watson

100% we have a list of folks here: 11ty.dev/super-professional-bu…

And we’ll boost your post here.

A third option is the Eleventy Discord, which has a lovely bunch of helpful folks: 11ty.dev/blog/discord/

in reply to Eleventy 🎈 v3.0.0

I have a serendipitous public holiday and so I volunteer to attempt to perform this upgrade in the form of a pull request to your GitHub repository (github.com/LJWatson/website-ti…). :)
This entry was edited (3 days ago)
in reply to Philipp Tootloff

@kleinfreund @eleventy This is extraordinarily generous of you - thank you so very much!

I'm reading your helpful commit messages now. I've cloned your fork, and have upgraded to Node 22, and `npm install` works - though `npm start` is still giving me errors, but I'm trying to figure them out.

Is there some way I can express my thanks? Perhaps a fee, or a donation to a charity of your choice, or a gift of some kind I can send?

in reply to Léonie Watson

@eleventy Thanks! Absolutely no material form of thanks is necessary, but I appreciate the offer. :)

One immediate thing that comes to mind to try after upgrading node is to throw out node_modules and then run `npm install` again. This should normally not be necessary, but I remain cautious.

Let me also try and run the package scripts in a Linux environment to see if I also run into issues.

in reply to Philipp Tootloff

@eleventy My running the production script in a Linux environment did reveal what I assume is also the error you're seeing:

Error: template not found: /home/phil/dev/website-tink-eleventy/dist/css/critical.css

I'll leave a comment on the pull request so its paper trail remains sensible.

in reply to Philipp Tootloff

@kleinfreund @eleventy Thanks. The error on `npm start` is:

> npx gulp && concurrently "npx gulp watch" "npx eleventy --serve"
(node:33604) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. ...

in reply to Léonie Watson

@kleinfreund that’s a warning that I’m actively working on fixing this week! github.com/11ty/eleventy-img/i… (shouldn’t cause any issues though)
in reply to Eleventy 🎈 v3.0.0

@eleventy Thank you. A marvellous person has responded with a PR, which was completely unexpected - but thanks for the link and for your help too.