Skip to content

Error: Unknown --filename-case 'kebab' #100

@Tim-arts

Description

@Tim-arts

Hello everyone, I've discovered Radius recently and wanted to give it a try. I've ran into an error while installing:

OS: Windows 10 (version 1909)

Steps:

  • yarn
  • yarn workspace ds build
  • yarn workspace ds storybook

Error while running yarn workspace ds build

Versions:
yarn: 1.22.10
node: 14.16.1

Log:

C:\Users\user\Desktop\rangle-design-system>yarn workspace ds build
yarn workspace v1.22.10
yarn run v1.22.10
$ yarn icons
$ svgr --template ./icon-template.js --index-template ./icon-index-template.js --ext tsx --icon --filename-case 'kebab' --title-prop --no-prettier --ref -d ./src/components/icons ./src/components/icons
C:\Users\user\Desktop\rangle-design-system\node_modules\@svgr\cli\lib\index.js:162
    throw error;
    ^

Error: Unknown --filename-case 'kebab'
    at transformFilename (C:\Users\user\Desktop\rangle-design-system\node_modules\@svgr\cli\lib\util.js:57:13)
    at rename (C:\Users\user\Desktop\rangle-design-system\node_modules\@svgr\cli\lib\dirCommand.js:34:51)
    at write (C:\Users\user\Desktop\rangle-design-system\node_modules\@svgr\cli\lib\dirCommand.js:71:12)
    at handle (C:\Users\user\Desktop\rangle-design-system\node_modules\@svgr\cli\lib\dirCommand.js:137:12)
    at async Promise.all (index 1)
    at async handle (C:\Users\user\Desktop\rangle-design-system\node_modules\@svgr\cli\lib\dirCommand.js:114:23)
    at async C:\Users\user\Desktop\rangle-design-system\node_modules\@svgr\cli\lib\dirCommand.js:143:5
    at async Promise.all (index 0)
    at async dirCommand (C:\Users\user\Desktop\rangle-design-system\node_modules\@svgr\cli\lib\dirCommand.js:140:3)
    at async run (C:\Users\user\Desktop\rangle-design-system\node_modules\@svgr\cli\lib\index.js:157:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: C:\Program Files\nodejs\node.exe
Arguments: C:\Users\user\AppData\Roaming\npm\node_modules\yarn\lib\cli.js build
Directory: C:\Users\user\Desktop\rangle-design-system\packages\ds
Output:

info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions