Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

How to upgrade to latest Tailwind CSS and PostCSS? #13

Description

@hmaesta

After upgrading to latest Tailwind CSS (^2.0.1), server is crashing:

PostCSS plugin tailwindcss requires PostCSS 8.
Migration guide for end-users:
https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users

So, as described on the migration guide, I updated rollup-plugin-postcss to latest (^4.0.0) and added postcss (^8.2.0) as dependency.

But server still crashes...

The "fileName" or "name" properties of emitted files must be strings that are neither absolute nor relative paths and do not contain invalid characters, received "./static/global.css".
✔ service worker (28ms)
internal/modules/cjs/loader.js:796
throw err;
^

Error: Cannot find module '/Users/hugo/Localhost/sapper-tailwindcss/sapper/dev/server/server.js'

Any suggestion?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions