Skip to content

v0.1.6 — React Entry Variable Rendering Fix

Choose a tag to compare

@AndraZero121 AndraZero121 released this 01 Jul 12:18

rusters-cli v0.1.6

This release resolves a runtime error in newly generated React projects:

Fixes

  • React compile-time variable reference error: Renamed the React entrypoint file from main.tsx to main.tsx.tpl. Previously, it was copied verbatim without the template engine running over it, leaving the {{ PROJECT_NAME }} interpolation tag unrendered. This was interpreted by JSX at runtime as nested object shorthand { { PROJECT_NAME } } referencing an undefined PROJECT_NAME variable, causing the app to crash with ReferenceError: PROJECT_NAME is not defined.

Install

cargo install --git https://github.com/untrustnova/rusters-cli --tag v0.1.6