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

When I run yo, it cause error ! #774

Closed
HSUCHING opened this issue Oct 7, 2021 · 0 comments
Closed

When I run yo, it cause error ! #774

HSUCHING opened this issue Oct 7, 2021 · 0 comments

Comments

@HSUCHING
Copy link

HSUCHING commented Oct 7, 2021

Hi, When I run yo, it cause error !

This is my environment:

  • ./bashrc
    function y { export PROJECT_PATH=pwd&& (cd ../landscapeapp && yarn run "$@")} export -f y alias yf='y fetch' alias yl='y check-links' alias yq='y remove-quotes' alias yp='y build && y open:dist' alias yo='y open:src' alias a='for lpath in /Users/hsuching/Documents/Development/Atlantis/landscapeContainer/{landscapeapp,cdf-landscape,graphql-landscape,lfai-landscape}; do echo $lpath; git -C $lpath pull -p; done; (cd /Users/hsuching/Documents/Development/Atlantis/landscapeContainer/landscapeapp && yarn);'

  • My project structure path as follows:

landscapeContainer

landscapeapp
cdf-landscape
lfai-landscape

This is my error msg:

` cdf-landscape git:(master) yo
processed /Users//Documents/Development//landscapeContainer/cdf-landscape
Fetching members from CDF Members category
Processing the tree
Preparing Landscape
/Users/
/Documents/Development/**/landscapeContainer/landscapeapp/tools/prepareLandscape.js:32
(0, _fs.rmSync)('public', {
^

TypeError: (0 , _fs.rmSync) is not a function
at Object. (/Users/hsuching/Documents/Development/Atlantis/landscapeContainer/landscapeapp/tools/prepareLandscape.js:13:1)

Could not resolve "/Users//Documents/Development//landscapeContainer/landscapeapp/public/settings.json" in file /Users//Documents/Development//landscapeContainer/landscapeapp/src/pages/_app.js.
error - ./src/pages/_app.js:6:0
.............
Module not found: Can't resolve '/Users/
/Documents/Development/Atlantis/landscapeContainer/landscapeapp/public/settings.json'
..............
`

I watch that it should execute this process in landscapeapp/tools/prepareLandscape.js when run "yo". But,I find it seems that it does not copy "PROJECT_PATH/settings.yml" to "landscapeapp/public/settings.json" . And, it also does not create "public" folder in landscapeapp when run "yo".

I want to know what i should do?

@HSUCHING HSUCHING closed this as completed Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant