Sign in
Log inSign up
Import Parse JS sdk into Ionic 2/Angular2 app

Import Parse JS sdk into Ionic 2/Angular2 app

Default profile photo
Anonymous
·Mar 1, 2016

am trying to import JS sdk into ionic2/angular2 app, but i keep getting parse is undefined

In ionic 1.x ,parse js sdk is loaded via

<script ..parse.js </script>

and exposed as a global var, how do import in ionic 2 , am using the npm module ,and tried currently doing

  import * as parse from 'parse'

tried without import assuming it already it already loaded

 Parse.Current.. 

return parse is undefined

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct