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

Sapper errors with tailwind.config.js using module exports #1

Open
tylergannon opened this issue Mar 13, 2021 · 0 comments
Open

Sapper errors with tailwind.config.js using module exports #1

tylergannon opened this issue Mar 13, 2021 · 0 comments

Comments

@tylergannon
Copy link

Hey thanks for the head start on getting myself set up with tailwind in my sapper app. Just a note that I was able to fix startup errors in my app by converting the tailwind config to a non-module object literal. Sapper wasn't very helpful in diagnosing it so I couldn't tell which component was disagreeing with the use of a module in that context, giving only the error message 'import' and 'export' may appear only with 'sourceType: module'. Once I narrowed it down to the tailwind plugin for postcss, I tried copying your tailwind.config.js value for value into a normal object literal and the server now starts. This is on a new sapper app with the latest of everything.

Cheers!

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