-
Notifications
You must be signed in to change notification settings - Fork 187
Description
Description: While attempting to build the project, I encountered an error during the build process of @rocket.chat/fuselage-tokens. The error message points to an issue with the path argument being undefined in loadFile.js of the style-dictionary package.
Error Log:
@rocket.chat/fuselage-tokens:build: Build started...
@rocket.chat/fuselage-tokens:build:
@rocket.chat/fuselage-tokens:build: ==============================================
@rocket.chat/fuselage-tokens:build: file:///Users/apple/Downloads/fuselage-chore-tamagui/node_modules/style-dictionary/lib/utils/loadFile.js:54
@rocket.chat/fuselage-tokens:build: throw new Error(${errMessage}
);
@rocket.chat/fuselage-tokens:build: ^
@rocket.chat/fuselage-tokens:build:
@rocket.chat/fuselage-tokens:build: Error: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
@rocket.chat/fuselage-tokens:build: at loadFile (file:///Users/apple/Downloads/fuselage-chore-tamagui/node_modules/style-dictionary/lib/utils/loadFile.js:54:15)
@rocket.chat/fuselage-tokens:build: at async StyleDictionary.extend (file:///Users/apple/Downloads/fuselage-chore-tamagui/node_modules/style-dictionary/lib/StyleDictionary.js:224:40)
@rocket.chat/fuselage-tokens:build:
@rocket.chat/fuselage-tokens:build: Node.js v18.20.6
@rocket.chat/fuselage-tokens:build: ERROR: ".:build" exited with 1.
@rocket.chat/fuselage-tokens:build: ERROR: command finished with error: command (/Users/apple/Downloads/fuselage-chore-tamagui/packages/fuselage-tokens) /private/var/folders/p5/fj9hyhn95_l6hb_kbxz7kpgm0000gn/T/xfs-4d46c842/yarn run build exited (1)
@rocket.chat/fuselage-tokens#build: command (/Users/apple/Downloads/fuselage-chore-tamagui/packages/fuselage-tokens) /private/var/folders/p5/fj9hyhn95_l6hb_kbxz7kpgm0000gn/T/xfs-4d46c842/yarn run build exited (1)
Tasks: 10 successful, 12 total
Cached: 10 cached, 12 total
Time: 7.748s
Failed: @rocket.chat/fuselage-tokens#build
ERROR run failed: command exited (1)
Steps to Reproduce:
-
Clone the repository and navigate to the project directory.
-
Run yarn to install dependencies.
Expected Result: The build should complete successfully without any errors.
Actual Result: The build fails with the error related to the "path" argument being undefined in loadFile.js.
Environment:
Node.js version: v18.20.6
Yarn version: 4.6.0
Operating System:macOS Sequoia (15.3.1)