Skip to content

Parse JS SDK and RequireJS or Webpack #421

Closed
@camdagr8

Description

@camdagr8

I'm trying to include the Parse Javascript SDK (1.9.2) via npm (https://www.npmjs.com/package/parse) and I keep getting the following error in the browser:

Uncaught ReferenceError: require is not defined
    at Object.<anonymous> (external "events":1)
    at __webpack_require__ (bootstrap 8ca8db8…:19)
    at Object.root (EventEmitter.js:14)
    at __webpack_require__ (bootstrap 8ca8db8…:19)
    at Object.defineProperty.value (ParseLiveQuery.js:7)
    at __webpack_require__ (bootstrap 8ca8db8…:19)
    at Object.defineProperty.value (Parse.js:152)
    at __webpack_require__ (bootstrap 8ca8db8…:19)
    at Object.defineProperty.value (index.js:1)
    at __webpack_require__ (bootstrap 8ca8db8…:19)

Things I've Looked at:

So..

Can someone point me in the right direction as to what could be causing this error?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions