achingbrain / achingbrain/swagger-ui-browserify

TypeError: jQuery is not a function (near '...})(jQuery,this);...')

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4
Forks
3
PR merge metrics
No merged PRs in 30d

Description

I get the following error when requiring swagger-ui-browserify:

`window.SwaggerUi = require('swagger-ui-browserify');`

```
app-9790bb59d0.js:15364Uncaught TypeError: require(...)(...) is not a function208.jquery @ app-9790bb59d0.js:15364s @ app-9790bb59d0.js:1(anonymous function) @ app-9790bb59d0.js:1244../template/content_type @ app-9790bb59d0.js:45358s @ app-9790bb59d0.js:1(anonymous function) @ app-9790bb59d0.js:1258../dist @ app-9790bb59d0.js:47742s @ app-9790bb59d0.js:1(anonymous function) @ app-9790bb59d0.js:1316.swagger-ui-browserify @ app-9790bb59d0.js:62012s @ app-9790bb59d0.js:1(anonymous function) @ app-9790bb59d0.js:1314../swagger-ui.js @ app-9790bb59d0.js:61888s @ app-9790bb59d0.js:1e @ app-9790bb59d0.js:1(anonymous function) @ app-9790bb59d0.js:1
```

(Sorry for the poor error formatting, not sure how useful it is after being browserified.) Any idea what I might be doing wrong? Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.