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

Failed to Copy Files #47

Open
S33G opened this issue Nov 3, 2023 · 0 comments
Open

Failed to Copy Files #47

S33G opened this issue Nov 3, 2023 · 0 comments

Comments

@S33G
Copy link

S33G commented Nov 3, 2023

I'm getting an error when running pe-create no matter the configuration.
I've tried v16 and v18 with no success

➜  [ui] git:(main) ✗ pe-create 
  ____               _              _     _____                         
 |  _ \  _ __  ___  (_)  ___   ___ | |_  | ____| _ __  _ __  ___   _ __ 
 | |_) || '__|/ _ \ | | / _ \ / __|| __| |  _|  | '__|| '__|/ _ \ | '__|
 |  __/ | |  | (_) || ||  __/| (__ | |_  | |___ | |   | |  | (_) || |   
 |_|    |_|   \___/_/ | \___| \___| \__| |_____||_|   |_|   \___/ |_|   
                  |__/                                                  
? Type in the name of the resource: banner
? Type in the name of the resource: banner
? Please select a language to create a FiveM App for...  
? Please select a language to create a FiveM App for...  JavaScript
{ val: 'JavaScript' }
? What JavaScript packages would you like to use with this project? 
? What JavaScript packages would you like to use with this project? eslint, pret
tier
? Do you want to include a UI framework? 
? Do you want to include a UI framework? React with JavaScript
selected ui framework react_javascript
✖ Failed to create resource path!
✔ Successfully cloned templates
⠋ Copying files to resourceError: Cannot find module './copiers/JavaScript'
Require stack:
- /home/docker/.nvm/versions/node/v16.20.1/lib/node_modules/@project-error/cli/dist/functions/tools/github.js
- /home/docker/.nvm/versions/node/v16.20.1/lib/node_modules/@project-error/cli/dist/functions/createResource.js
- /home/docker/.nvm/versions/node/v16.20.1/lib/node_modules/@project-error/cli/dist/commands/create.js
- /home/docker/.nvm/versions/node/v16.20.1/lib/node_modules/@project-error/cli/dist/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at /home/docker/.nvm/versions/node/v16.20.1/lib/node_modules/@project-error/cli/dist/functions/tools/github.js:48:79
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async installTemplate (/home/docker/.nvm/versions/node/v16.20.1/lib/node_modules/@project-error/cli/dist/functions/tools/github.js:48:31)
    at async createResource (/home/docker/.nvm/versions/node/v16.20.1/lib/node_modules/@project-error/cli/dist/functions/createResource.js:13:5)
    at async createCommand (/home/docker/.nvm/versions/node/v16.20.1/lib/node_modules/@project-error/cli/dist/commands/create.js:29:5) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/docker/.nvm/versions/node/v16.20.1/lib/node_modules/@project-error/cli/dist/functions/tools/github.js',
    '/home/docker/.nvm/versions/node/v16.20.1/lib/node_modules/@project-error/cli/dist/functions/createResource.js',
    '/home/docker/.nvm/versions/node/v16.20.1/lib/node_modules/@project-error/cli/dist/commands/create.js',
    '/home/docker/.nvm/versions/node/v16.20.1/lib/node_modules/@project-error/cli/dist/index.js'
  ]
}
✖ Failed to copy files!
✔ Successfully installed default packages
✔ Successfully installed UI packages
✔ Successfully installed eslint
✔ Successfully installed prettier
✔ Successfully installed selected packages
Success!
Result of prompts:
{
  language: { val: 'JavaScript' },
  resourceName: { val: 'banner' },
  packages: { val: [ 'eslint', 'prettier' ] },
  uiFramework: { val: 'react_javascript' }
}
Complete
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