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

Update main README.md and path to tokens #5675

Open
SashaPimenov opened this issue Dec 28, 2024 · 0 comments
Open

Update main README.md and path to tokens #5675

SashaPimenov opened this issue Dec 28, 2024 · 0 comments

Comments

@SashaPimenov
Copy link

I encountered an issue while trying to deploy your project locally (Windows 11, Node.js 16.20.0) following your main README file.

During the yarn workspace @open-condo/ui build stage, the build failed with the following errors:

No properties for variables.less. File not created.
No properties for variables.css. File not created.

To resolve this, I had to modify two lines in packages/ui/bin/buildStyleVars/runner.js:

const TOKENS_DIR = path.join(__dirname, '../..', 'src/tokens')
const SOURCE_PATH = path.join(TOKENS_DIR, 'sets/*.json')

These lines needed to be changed to:

const TOKENS_DIR = path.join(__dirname, '..', '..', 'src', 'tokens')
const SOURCE_PATH = path.join(TOKENS_DIR, 'sets', '*.json').replace(/\\/g, '/')

Additionally, before running yarn workspace @app/condo build, it's necessary to execute the following commands:

yarn workspace @open-condo/miniapp-utils build
yarn workspace @open-condo/apollo build

Please update the main README file to reflect these changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant