Skip to content

Problem following tailwind integration | https://electron-react-boilerplate.js.org/docs/styling/#tailwind-integration #199

Description

@HugoLeBoennec

The problem :

ERB: 4.5.0

Depencies Version
tailwindcss ^3.0.23
postcss ^8.4.8
postcss-loader ^6.2.1
autoprefixer ^10.4.2

In the part 4 for the tailwind.config.js

import colors from "tailwindcss/colors";

SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'

The logical fix :
const colors = require('tailwindcss/colors');


As an extra the part 2 ins't clear enougth and the github exemple don't work for me.

PS: It's the first time ever i do some kind of contribute sorry if it's not the right way

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions