Bengejd / Ionic-Plugin-Assistant

A npm package to generate all of the necessary boilerplate for an ionic plugin.
MIT License
4 stars 0 forks source link

[ERROR] UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'mkdir' of undefined #12

Open bobrosoft opened 5 years ago

bobrosoft commented 5 years ago

Hi there, getting bunch of next:

bobr$ ipa
? What is your plugins name? Example: image-picker eml-sdk
? What does your plugin do? Try to keep your description short. EML SDK wrapper
? What is your name? Tip: Your github username is always a good choice. bobrosoft
? What devices are you targeting? iOS, Android

        PLUGIN_NAME: eml-sdk
        PLUGIN_DESCRIPTION: EML SDK wrapper
        AUTHOR_NAME: bobrosoft
        PLATFORMS: iOS,Android

? Are you sure you want to proceed with this configuration? YES
 PASCAL_NAME:  EmlSdk
(node:15000) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'mkdir' of undefined
    at e.writeFile (/Users/bobr/.config/yarn/global/node_modules/ionic-plugin-assistant/dist/index.js:2:440658)
    at /Users/bobr/.config/yarn/global/node_modules/ionic-plugin-assistant/dist/index.js:2:253445
    at a (/Users/bobr/.config/yarn/global/node_modules/ionic-plugin-assistant/dist/index.js:2:254717)
    at Generator._invoke (/Users/bobr/.config/yarn/global/node_modules/ionic-plugin-assistant/dist/index.js:2:254505)
    at Generator.t.(anonymous function) [as next] (/Users/bobr/.config/yarn/global/node_modules/ionic-plugin-assistant/dist/index.js:2:255139)
    at n (/Users/bobr/.config/yarn/global/node_modules/ionic-plugin-assistant/dist/index.js:2:176006)
    at u (/Users/bobr/.config/yarn/global/node_modules/ionic-plugin-assistant/dist/index.js:2:176216)
    at <anonymous>
(node:15000) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15000) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
...
bobr$ node -v
v8.16.0
bobr$ uname -a
Darwin MacBook-Pro.local 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 22:26:31 PDT 2019; root:xnu-4903.251.3~5/RELEASE_X86_64 x86_64
DaanHWiltenburg commented 3 years ago

Hi Bobrosoft, did you solve this issue? I am running into the same problem but I cannot seem to fix it!

bobrosoft commented 3 years ago

@DaanHWiltenburg hi, I don't remember tbh, but I was able to create plugin I want. There was some article or something, I copied or just manually recreated folders/files structure.

DaanHWiltenburg commented 3 years ago

I can imagine, it is quite an old issue. I am using a third party package that is used to generate a component, and this third party plug in uses mkdir which does not seem to be working...