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

Mono Repo workpace path error #16

Open
spaceCabbage opened this issue Sep 17, 2024 · 2 comments
Open

Mono Repo workpace path error #16

spaceCabbage opened this issue Sep 17, 2024 · 2 comments

Comments

@spaceCabbage
Copy link

i just found this extension and it looks super useful, but i mainly use it in a mono-repo. i set up a workspace path but it doesn't seem to find the config file

{
  "tailwindConfigViewer.workspacePath": "./client",
}

this is the correct path to the "frontend" directory

but i'm getting an error:
Cannot use import statement outside a module

am i using the workspacePath wrong?

any ideas? thanks

@spaceCabbage
Copy link
Author

spaceCabbage commented Sep 17, 2024

my config file is at

client/tailwind.config.js

@abdul-alhasany
Copy link
Contributor

You would need to use require instead of import in your config file.

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

2 participants