Skip to content

tailwindcss CLI v1.3 now requires Node v10 #1604

@bradlc

Description

@bradlc

Because of the fs-extra bump the tailwindcss command now requires Node v10, as that module dropped support for Node versions prior to that.

The specific error I am seeing (on Node v8.12.0) is due to the usage of the optional catch binding feature added in Node v10:

> tailwindcss build in.css -o out.css

node_modules/fs-extra/lib/mkdirs/make-dir.js:86
      } catch {
              ^

SyntaxError: Unexpected token {

I'm guessing this was unintentional since it isn't mentioned in the release notes and it would constitute a breaking change. I propose reverting the fs-extra bump to maintain the original Node support until at least the next major Tailwind release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions