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

tailwind-tokens Error: Path contains invalid characters #256

Closed
6 tasks done
llbarr1 opened this issue Aug 19, 2022 · 2 comments
Closed
6 tasks done

tailwind-tokens Error: Path contains invalid characters #256

llbarr1 opened this issue Aug 19, 2022 · 2 comments
Labels
to triage This issue needs to be triaged

Comments

@llbarr1
Copy link

llbarr1 commented Aug 19, 2022

Describe the bug

When running story:dev on a Windows 10 machine I get the following error when generating the Tailwind tokens:

[Plugin:builtin:tailwind-tokens] Error: Path contains invalid characters: C:/Dev/histoire/node_modules/.histoire/plugins/builtin:tailwind-tokens    
   at checkPath (C:\Dev\histoire\node_modules\fs-extra\lib\mkdirs\utils.js:16:21)
    at Object.module.exports.makeDir (C:\Dev\histoire\node_modules\fs-extra\lib\mkdirs\make-dir.js:13:3)
    at Object.defineProperty.value (C:\Dev\histoire\node_modules\fs-extra\node_modules\universalify\index.js:21:45)
    at generate (file:///C:/Dev/histoire/node_modules/histoire/dist/node/builtin-plugins/tailwind-tokens.js:17:26)
    at FSWatcher.<anonymous> (file:///C:/Dev/histoire/node_modules/histoire/dist/node/builtin-plugins/tailwind-tokens.js:62:38)
    at FSWatcher.emit (node:events:526:28)
    at FSWatcher.emitWithAll (C:\Dev\histoire\node_modules\chokidar\index.js:540:8)
    at FSWatcher._emit (C:\Dev\histoire\node_modules\chokidar\index.js:632:8)
    at NodeFsHandler._handleFile (C:\Dev\histoire\node_modules\chokidar\lib\nodefs-handler.js:400:14)
    at NodeFsHandler._addToNodeFs (C:\Dev\histoire\node_modules\chokidar\lib\nodefs-handler.js:637:21)

The server still finishes loading, but the Design System section is empty:

image

The same error appears when trying to run story:build.

Reproduction

Install histoire on a Windows 10 machine
Run story:dev

System Info

Node 16.14.2
npm 7.21.0
Windows 10 Version 20H2

Used Package Manager

npm

Validations

@llbarr1 llbarr1 added the to triage This issue needs to be triaged label Aug 19, 2022
@oneezy
Copy link

oneezy commented Aug 20, 2022

Can confirm on Windows 11 as well

@oneezy
Copy link

oneezy commented Aug 20, 2022

@Akryum gave this advice and it fixed the issue

You can try editing the pluginTempDir computation in node_modules/histoire/dist/node/plugin.js and put

this.plugin.name.replace(/:/g, '_')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants