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

TypeError: Cannot read property 'split' of undefined #10

Open
kaanguru opened this issue Mar 29, 2020 · 0 comments
Open

TypeError: Cannot read property 'split' of undefined #10

kaanguru opened this issue Mar 29, 2020 · 0 comments

Comments

@kaanguru
Copy link

kaanguru commented Mar 29, 2020

Cook gives the following error and fails to copy any file

I have just created a test folder but it gives the following error and fails to copy any file. I did not use any variables.

To reproduce problem

  • Go inside the folder you want to create templete from
  • cook create name Created a new empty Boilerplate at C:\Users\user.cook\name
  • Go to the folder where you want to install new template
  • cook name new Successfully created name in D:\test\nuxt\new
  • ls there is no new folder.
TypeError: Cannot read property 'split' of undefined
    at C:\Users\user\AppData\Local\Yarn\Data\global\node_modules\@eyk\cook\dist\commands\default.js:89:37
    at step (C:\Users\user\AppData\Local\Yarn\Data\global\node_modules\@eyk\cook\dist\commands\default.js:33:23)
    at Object.next (C:\Users\user\AppData\Local\Yarn\Data\global\node_modules\@eyk\cook\dist\commands\default.js:14:53)
    at C:\Users\user\AppData\Local\Yarn\Data\global\node_modules\@eyk\cook\dist\commands\default.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Users\user\AppData\Local\Yarn\Data\global\node_modules\@eyk\cook\dist\commands\default.js:4:12)
    at Object.default (C:\Users\user\AppData\Local\Yarn\Data\global\node_modules\@eyk\cook\dist\commands\default.js:46:53)
    at Object.<anonymous> (C:\Users\user\AppData\Local\Yarn\Data\global\node_modules\@eyk\cook\dist\index.js:28:26)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)

node version: v12.16.1
yarn version: 1.22.4
OS: Windows 10 with Powershell 6

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