You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a fresh Remix project using the blues stack, and then when I tried to use the CLI I'm getting this error:
Affected component/components
All
How to reproduce
Create Remix Blues Stack template app
Follow the setup instructions
Then try to use the CLI to install a component or even do npx shadcn@latest init
Then it gives the error shown
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Windows 11, x64
Before submitting
I've made research efforts and searched the documentation
I've searched for existing issues
The text was updated successfully, but these errors were encountered:
Stumbled upon the same issue this morning. It seems some templates have a different base config than the default stacks recommended by Remix.
I made a PR to fix that (it was actually a TODO in the cli code)
# What
Some remix templates doesn't package a `vite.config.*` file at their root.
It's the case for the recommended starter "stack" templates: blues-stack, indie-stack and grunge-stack.
As recommended in a TODO comment, it's more suitable to check for a `@remix-run/*` dependency in the package dependencies.
# How
- decouple vite and remix checks
- retrieve the `package.json`
- allow passing a `cwd` to the retrieval method
- remove the "empty config file list" that can be empty for a remix stack
- check that the `package.json` contains a `@remix-run/*` dependency
# Test
Added a fixture by running `npx create-remix@latest --template remix-run/indie-stack` in the [frameworks](/Fluf22/shadcn-ui/tree/fix/cli-remix-detection/packages/cli/test/fixtures/frameworks) folder and named it `remix-indie-stack`, if ever we want another stack as a fixture later
---
Fixesshadcn-ui#4967
Describe the bug
I created a fresh Remix project using the blues stack, and then when I tried to use the CLI I'm getting this error:
Affected component/components
All
How to reproduce
Create Remix Blues Stack template app
Follow the setup instructions
Then try to use the CLI to install a component or even do npx shadcn@latest init
Then it gives the error shown
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: