Closed szymonhernik closed 1 year ago
Did you configure src folder to be "src" during setup?
I believe I will need to add a mkdir
step to ensure such folders are setup as part of config step (which causes this error)
Hey :) Thank you for your quick reply! This didn't solve the error...
If I set "src_dir": "src"
to config file I get the similar error but with another directory Error: ENOENT: no such file or directory, open '/Users/username/smoll-dev-js-project-1/src/lib/posts.ts'
. I tried also creating src directory in the project folder manually but nothing is being written there.
My bad, found the issue - I didn't add the code to create the required subfolders prior to creating the file - fixed and push in 1.2.15
It solved the problem. Thanks a lot for looking into this. Just started testing the small-dev-js!
There was one more error I run into:
ReferenceError: child_process is not defined at getOperationFileMapFromPlan (/usr/local/lib/node_modules/smol-dev-js/src/ai/seq/applyOperationFileMapFromPlan.js:70:3)
, which i managed to solve by adding const child_process = require('child_process');
at the top of the file that threw the error.
This is the error I'm running into each time after I give the plan a go.
Nothing is rendered into the folder prior to this error. I have no src folder.
Thanks for any help