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

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

Open
GreenPowerHub-support opened this issue Dec 12, 2024 · 0 comments

Comments

@GreenPowerHub-support
Copy link

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",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant