manishkatyan / strapi-stripe

Stripe Plugin for Strapi CMS
66 stars 33 forks source link

Server wasn't able to start properly. #31

Closed flashoop closed 2 years ago

flashoop commented 2 years ago

2022-07-30 08:50:21.968] debug: ⛔️ Server wasn't able to start properly. [2022-07-30 08:50:21.969] error: The "path" argument must be of type string. Received undefined TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

brausend commented 2 years ago

change node_modules/strapi-stripe/server/register.js ln: 21 from const bbbJsPath = path.resolve(strapi.dirs.extensions, 'strapi-stripe', 'public', 'stripe.js');

to const bbbJsPath = path.resolve(strapi.dirs.dist.extensions, 'strapi-stripe', 'public', 'stripe.js');

does the trick.

RanderGabriel commented 2 years ago

I had the same problem here and the solution from @brausend worked for me.

I am running it on windows. Has somebody faced this problem in other operational systems?

I can open a Pull Request changing it here, but it may need to be tested in other environments