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

Module not Found on CLI init #1

Open
atilafassina opened this issue Nov 10, 2024 · 3 comments
Open

Module not Found on CLI init #1

atilafassina opened this issue Nov 10, 2024 · 3 comments

Comments

@atilafassina
Copy link

Just ran pnpm dlx @mystic-ui/cli init in my project and got

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/.../node_modules/tailwindcss/defaultTheme' imported from /.../tailwind.config.mjs
Did you mean to import "tailwindcss/defaultTheme.js"?

right after the Welcome message.
I already have tailwind installed, but my config is tailwind.config.ts and I'm using tailwindcss/defaultTheme there with no issues... 🤔

@TheComputerM
Copy link
Owner

I think the error occurs when cosmiconfig tries to load the config, which we don't really need, we just need the filepath

@TheComputerM
Copy link
Owner

You can create the mystic.config.json file manually, you won't face issues after that

{
  "framework": "tailwind",
  "configPath": "tailwind.config.ts",
  "outputPath": "./src/components/mystic-ui/",
  "tailwind": {
    "aliases": {
      "utils": "@/lib/utils"
    }
  }
}

@atilafassina
Copy link
Author

thanks for that!! i'll try it out asap. I've been manually installing for now. Great work!!

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