style-dictionary icon indicating copy to clipboard operation
style-dictionary copied to clipboard

[BUG] Matching Build Files fails to build with ENOENT

Open matt-bainton-mgb opened this issue 8 months ago • 0 comments

Attempting to run build on the matching-build-files example errors out with an "ENOENT" message stemming from the ./tokens/index.js file.

Steps to reproduce:

  1. Clone style-dictionary
  2. switch to examples/advanced/matching-build-files dir
  3. Install - run npm install
  4. Build - run npm run build
  5. node errors out:

Error: ENOENT: no such file or directory, scandir 'file:///Users/[myuser]/Code/playground/temp/style-dictionary/examples/advanced/matching-build-files/tokens/index.js'

I can verify that the file:/// path in the error does exist and correctly resolves to the index.js.

Image

matt-bainton-mgb avatar May 09 '25 16:05 matt-bainton-mgb