nuxt-stripe-module icon indicating copy to clipboard operation
nuxt-stripe-module copied to clipboard

[nuxt-stripe-module] Cannot read properties of undefined (reading 'stripe')

Open kamran-ashlarglobal opened this issue 2 years ago • 7 comments

Hi,

I am using nuxt 2.8.1. with spa mode After Installing the package and adding the following configuration nuxt.conf.js

{
  modules: [
    'nuxt-stripe-module',
  ],
  stripe: {
    publishableKey: 'YOUR_STRIPE_PUBLISHABLE_KEY',
  },
}

I am getting this error. [nuxt-stripe-module] Cannot read properties of undefined (reading 'stripe')

Can anyone guide me on what I am doing wrong?

@WilliamDASILVA

kamran-ashlarglobal avatar Apr 11 '22 07:04 kamran-ashlarglobal

Same issue for me

justchrister avatar Apr 01 '23 18:04 justchrister

Checking to see if any of the contributors know what's going on with this error.

It seems related to this line in module.js: const options = Object.assign({}, defaults, this.options.stripe, moduleOptions)

@WilliamDASILVA

TheOnlyRantis avatar May 21 '23 07:05 TheOnlyRantis

Has anyone found a solution to this error?

negativems avatar May 22 '23 10:05 negativems

Bumping this. Same issue here with

"nuxt": "^3.4.1", "nuxt-stripe-module": "^3.2.0",

asharghi avatar Jul 22 '23 21:07 asharghi

same issue here as well

"nuxt": "^3.6.5", "nuxt-stripe-module": "^3.2.0"

HugoMichard avatar Aug 08 '23 17:08 HugoMichard

After digging into it, it seems the current package nuxt-stripe-module does not support nuxt3.

This is related to https://github.com/WilliamDASILVA/nuxt-stripe-module/issues/45. As florenzo mentioned here https://github.com/WilliamDASILVA/nuxt-stripe-module/issues/45#issuecomment-1610402690, another package supporting nuxt3 was released and can be found here https://www.npmjs.com/package/nuxt3-stripe.

Following the quick setup there solves the error for me !

HugoMichard avatar Aug 08 '23 17:08 HugoMichard

same issue here as well

paulootavio avatar Mar 30 '24 02:03 paulootavio