Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handlebars is not defined #1965

Closed
Siddeshgad opened this issue Feb 13, 2016 · 2 comments
Closed

Handlebars is not defined #1965

Siddeshgad opened this issue Feb 13, 2016 · 2 comments

Comments

@Siddeshgad
Copy link

Siddeshgad commented Feb 13, 2016

Handlebars is not defined
at Object. (.../node_modules/swagger-ui/dist/swagger-ui.js:9:57)
at Object. (.../node_modules/swagger-ui/dist/swagger-ui.js:26330:7)

This is the error message which I got when I tried importing swagger-ui package.

I tried installing and including Handlebars package before swagger_ui but it did not help.

Can you please provide solution to this problem?

@rmharrison
Copy link

rmharrison commented Aug 31, 2016

Same issue. Looks the same as #1551.
Tried with both node 4.5.0 and 6.5.0 ([email protected] node_modules/swagger-ui).

> swaggerUI = require('swagger-ui')
ReferenceError: Handlebars is not defined
    at .. node_modules/swagger-ui/dist/swagger-ui.js:9:18
    at Object.<anonymous> (.. node_modules/swagger-ui/dist/swagger-ui.js:773:3)
    at Object.<anonymous> (.. node_modules/swagger-ui/dist/swagger-ui.js:24758:7)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at repl:1:13

@fehguy
Copy link
Contributor

fehguy commented Sep 7, 2016

You'll have to require some packages to get it to work. Please take a look at the index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants