[Vuejs]-Need help on Errors: nuxt-stripejs: publishableKey is required

-1👍

Based on the error, it looks like you’re using nuxt-stripejs, the setup instructions for which indicate you should be putting your publishable key in the nuxt.config.js file rather than .env[.dev]. This other Nuxt stripe package also uses the nuxt config file to set up the publishable key.

Are you sure your .env key is being set up properly for the package you’re using? Can you share where you actually use that env var after import?

Leave a comment