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

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

Open
HugoLeBoennec opened this issue Mar 8, 2022 · 0 comments

Comments

@HugoLeBoennec
Copy link

HugoLeBoennec commented Mar 8, 2022

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

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