Skip to content

Tailwind + postcss in getting-started-project-theme - deploy does not work. #97

@GreenPowerHub-support

Description

@GreenPowerHub-support

Im using the getting-started-project-theme and added tailwind and postcss.config.mjs similar to the styling example.
Works locally with hs-cms-dev-server but the deploy does not build (hs project upload) when adding the postcss file .

Anything obvious that has to be done differently? The error doesnt say anything.

postcss.config.mjs (copy paste from the styling example)

import tailwind from 'tailwindcss';
import autoprefixer from 'autoprefixer';
import postcssNested from 'postcss-nested';
import tailwindConfig from './tailwind.config.js';

export default {
  plugins: [tailwind(tailwindConfig), postcssNested, autoprefixer()],
};

[ERROR] The build failed due to an internal error with id adaf1c88-2fdf-40da-82df-a9db16eb84a8. Try uploading it again. If the problem persists, contact HubSpot support with the error id.

Deploys correctly with empty plugins array in the postcss file.

"postcss-nested": "^6.2.0",
"tailwindcss": "^3.4.16",
"autoprefixer": "^10.4.20",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions