Skip to content

Uncaught ReferenceError: global is not defined using 2.x version in the Browser #338

Closed
@lholmquist

Description

Node.js Version:

Operating System:

Steps to Produce Error:

using the jQuery example from https://github.com/nodeshift-starters/opossum-examples/tree/master/jquery

I've updated to use Opossum@latest and receive this error in the developer console

opossum.js:10 Uncaught ReferenceError: global is not defined
    at opossum.js:10
(anonymous) @ opossum.js:10

Previously, in the 1.x version, this "global" variable use to be called "window".

There are 2 webpack configs now. one looks to be node only and the other is a web based one.

@helio-frota @lance why are there 2 configs now? It looks like the "opossum.js" that is distributed with the library is a node specific version, and the "browser-test.js" file that gets distributed actually works in the browser. shouldn't we just have on config and one file?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

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