Environment
- OS: Windows 11
- Node: v18.20.8
- Git: 2.48.1
Problem
After cloning Inventory-UI and running npm start,
build fails with errors across all components:
Cannot find module 'Common-UI/src/registrar/services/session-storage.service'
This affects 40+ components and makes the app
completely unusable.
Root Cause
Inventory-UI uses Common-UI as a git submodule.
The submodule is not initialized after a standard clone.
Fix (Verified)
Run this command after cloning:
git submodule update --init --recursive
After running this, build succeeds successfully.
Suggestion
Add this step to the README and AMRIT setup documentation:
After cloning, run:
git submodule update --init --recursive
Environment
Problem
After cloning Inventory-UI and running npm start,
build fails with errors across all components:
Cannot find module 'Common-UI/src/registrar/services/session-storage.service'
This affects 40+ components and makes the app
completely unusable.
Root Cause
Inventory-UI uses Common-UI as a git submodule.
The submodule is not initialized after a standard clone.
Fix (Verified)
Run this command after cloning:
git submodule update --init --recursive
After running this, build succeeds successfully.
Suggestion
Add this step to the README and AMRIT setup documentation:
After cloning, run:
git submodule update --init --recursive