carteb / carte-blanche

An isolated development space with integrated fuzz testing for your components. See them individually, explore them in different states and quickly and confidently develop them.
https://www.youtube.com/watch?v=6g3-TQ6aaw8
MIT License
1.5k stars 47 forks source link

Not working on windows #290

Closed MilosRasic closed 8 years ago

MilosRasic commented 8 years ago
ERROR in ./~/carte-blanche/dist/src/dynamic-resolve.js?{"filter":"/([A-Z][a-zA-Z]*.?///index|[A-Z][a-zA-Z]*)//.(jsx?|es6|react//.jsx?)$/","componentRoot":"./src/BIA/Components","context":"C://node//UI","dest":"carte-blanche"}!./~/carte-blanche/dist/src/assets/placeholder.js                                                                                      Module not found: Error: Cannot resolve module 'C:                                                                      odeUIsrcBIAComponents' in C:\node\UI\node_modules\carte-blanche\dist\src\assets                                          @ ./~/carte-blanche/dist/src/dynamic-resolve.js?{"filter":"/([A-Z][a-zA-Z]*.?///index|[A-Z][a-zA-Z]*)//.(jsx?|es6|react//.jsx?)$/","componentRoot":"./src/BIA/Components","context":"C://node//UI","dest":"carte-blanche"}!./~/carte-blanche/dist/src/assets/placeholder.js 6:26-149                                                                                                                                                                                                           ERROR in ./~/carte-blanche/dist/src/dynamic-resolve.js?{"filter":"/([A-Z][a-zA-Z]*.?///index|[A-Z][a-zA-Z]*)//.(jsx?|es6|react//.jsx?)$/","componentRoot":"./src/BIA/Components","context":"C://node//UI","dest":"carte-blanche"}!./~/carte-blanche/dist/src/assets/placeholder.js                                                                                      Module not found: Error: Cannot resolve module 'C:                                                                      odeUIsrcBIAComponents' in C:\node\UI\node_modules\carte-blanche\dist\src\assets                                          @ ./~/carte-blanche/dist/src/dynamic-resolve.js?{"filter":"/([A-Z][a-zA-Z]*.?///index|[A-Z][a-zA-Z]*)//.(jsx?|es6|react//.jsx?)$/","componentRoot":"./src/BIA/Components","context":"C://node//UI","dest":"carte-blanche"}!./~/carte-blanche/dist/src/assets/placeholder.js 6:157-376                                                                                                                                                                                                          ERROR in ./~/carte-blanche/dist/src/dynamic-resolve.js?{"filter":"/([A-Z][a-zA-Z]*.?///index|[A-Z][a-zA-Z]*)//.(jsx?|es6|react//.jsx?)$/","componentRoot":"./src/BIA/Components","context":"C://node//UI","dest":"carte-blanche"}!./~/carte-blanche/dist/src/assets/placeholder.js                                                                                      Module not found: Error: Cannot resolve module 'C:                                                                      odeUIsrcBIAComponents' in C:\node\UI\node_modules\carte-blanche\dist\src\assets                                          @ ./~/carte-blanche/dist/src/dynamic-resolve.js?{"filter":"/([A-Z][a-zA-Z]*.?///index|[A-Z][a-zA-Z]*)//.(jsx?|es6|react//.jsx?)$/","componentRoot":"./src/BIA/Components","context":"C://node//UI","dest":"carte-blanche"}!./~/carte-blanche/dist/src/assets/placeholder.js 6:388-585

Looks like at some point the absolute paths that make it into the generated code strings have unescaped backslashes. Note how \node is parsed as {newline}ode and other backslashes simply disappear.

mxstbr commented 8 years ago

Yeah, we currently don't support Windows, sorry. 😕 We're aware and thinking about how to change this, but it's going to require a bit of work! Would appreciate any help!

johann-sonntagbauer commented 8 years ago

@mxstbr is there already an issue for the windows support. I faced the same problem today an am eager to invest some time into it.

mxstbr commented 8 years ago

No there isn't, feel free to submit a WIP PR and let's fix this together!

johann-sonntagbauer commented 8 years ago

@mxstbr maybe adding a note in the readme, that windows is currently not supported saves some time and frustration.

nikgraf commented 8 years ago

great suggestion @johann-sonntagbauer - I just added a note right before the setup part: https://github.com/carteb/carte-blanche/blob/master/README.md

ingro commented 8 years ago

@johann-sonntagbauer did you find some time to investigate? I'm facing the same issue but didn't found a workaround yet.

johann-sonntagbauer commented 8 years ago

@ingro unfortunately not.