cook icon indicating copy to clipboard operation
cook copied to clipboard

TypeError: Cannot read property 'split' of undefined

Open kaanguru opened this issue 4 years ago • 0 comments

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

kaanguru avatar Mar 29 '20 06:03 kaanguru