smoothie icon indicating copy to clipboard operation
smoothie copied to clipboard

Cannot initialize Smoothie due to assets folder path issue

Open kevinwo opened this issue 7 years ago • 3 comments

Upon running mix smoothie.init, I receive the following error:

spawn: Could not cd to ./assets

I am using the latest commit, and my project assets are located at ./web/static/assets.

kevinwo avatar Jan 22 '18 14:01 kevinwo

@kevinwo

Are you using a version of phoenix pre 1.3 ?

I think we must have lost compatibility for pre 1.3 versions by assuming assets are in ./assets

See here

I think it would be straight forward to make it cater for both directories...

stephenmoloney avatar Jan 22 '18 14:01 stephenmoloney

Gotcha. I am using Phoenix 1.3, but now wondering if maybe I used a deprecated mix project initializer that created a pre 1.3 folder structure. Now that I'm comparing, it does look like my folder structure is pre 1.3.

I temporarily overrode the value for init.ex's @assets constant, and after getting the mix smoothie.init to work, realized I wanted to actually target my project root, where in pre 1.3 the node_modules folder and package.json file live.

kevinwo avatar Jan 22 '18 15:01 kevinwo

yea... this is still an issue really though.. we should be supporting both paths... sure, leave this issue open for now...

stephenmoloney avatar Jan 22 '18 15:01 stephenmoloney