Search code examples
parse-servernuxt.js

I want to use Nuxt with parse javascript client


I installed nuxt as PWA then I installed parse client from

npm i nuxt-parse

after that i added in nuxt.config.js

 ['nuxt-parse', {
      appID: "blablabla",
      javascriptKey: "blablabla",
      serverUrl: "https://parseapi.back4app.com"
  }

after that when i use

this.$parse.User.logIn('username', 'password'))

it returns Error: You need to call Parse.initialize before using Parse.

please any help


Solution

  • I solved this issue when changed name of appid from appID to appId this is an issue in this pod

    from['nuxt-parse', { appID: "blablabla", javascriptKey: "blablabla", serverUrl: "https://parseapi.back4app.com" }

    to['nuxt-parse', { appId: "blablabla", javascriptKey: "blablabla", serverUrl: "https://parseapi.back4app.com" }