Skip to content

Fix missing md-lite dependency and Sanity template instructions#172

Merged
marcospassos merged 1 commit into
masterfrom
fix-missing-md-lite-dependency
Jul 16, 2026
Merged

Fix missing md-lite dependency and Sanity template instructions#172
marcospassos merged 1 commit into
masterfrom
fix-missing-md-lite-dependency

Conversation

@marcospassos

Copy link
Copy Markdown
Member

Summary

  • Add the missing @croct/md-lite dependency to all templates that install a markdown.tsx utility importing it: croct/integration/sanity, croct/ui/component/announcement-bar, hero-ui/component/cookie-consent, material-ui/block/faq-section, material-ui/block/hero-section, and material-ui/template/marketing-page. Fresh installs of these templates failed with Module not found: Can't resolve '@croct/md-lite' — no published Croct package pulls it in transitively, so it only resolved by accident when an ancestor node_modules contained it (the mantine templates already declare it correctly).
  • Replace the Sanity template's example-launcher import with an explicit success message telling the user to run cd <project> && npm run dev, since the Sanity CLI cannot be launched from the template. The message points to the command output for URLs instead of hardcoding them, as ports may be assigned dynamically.

Test plan

  • All edited template.json5 files validate as JSON5
  • Run croct use croct://integration/sanity in an empty directory and confirm @croct/md-lite lands in frontend/package.json and npm run dev compiles

🤖 Generated with Claude Code

Several templates ship a markdown.tsx utility importing @croct/md-lite
without declaring it as a dependency, so fresh installs fail with
"Module not found". It only worked when an ancestor node_modules
happened to contain the package.

Also replace the Sanity template's example launcher with explicit
instructions, since the Sanity CLI cannot be launched from the
template and dev servers may bind to dynamic ports.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@marcospassos marcospassos added the bug Something isn't working label Jul 16, 2026
@marcospassos
marcospassos merged commit e000e05 into master Jul 16, 2026
2 of 4 checks passed
@marcospassos
marcospassos deleted the fix-missing-md-lite-dependency branch July 16, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant