question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compatability of springfox-boot-starter:3.0.0-SNAPSHOT and springfox-swagger-ui:3.0.0-SNAPSHOT

See original GitHub issue

Hey, awesome lib! I have a question: I’m implementing the dependencies like this:

<dependency>
  <groupId>io.springfox</groupId>
  <artifactId>springfox-boot-starter</artifactId>
  <version>3.0.0-SNAPSHOT</version>
</dependency>
<dependency>
  <groupId>io.springfox</groupId>
  <artifactId>springfox-swagger-ui</artifactId>
  <version>3.0.0-SNAPSHOT</version>
</dependency>

I’m getting this result: Capture

and following error messages in the browser console:

TypeError: Cannot read property 'url' of undefined
    at n.value (topbar.jsx:123)
    at n.R.t.render (root-injects.jsx:92)
    at s._renderValidatedComponentWithoutOwnerOrContext (ReactCompositeComponent.js:796)
    at s._renderValidatedComponent (ReactCompositeComponent.js:819)
    at s.performInitialMount (ReactCompositeComponent.js:359)
    at s.mountComponent (ReactCompositeComponent.js:255)
    at Object.mountComponent (ReactReconciler.js:43)
    at s.performInitialMount (ReactCompositeComponent.js:368)
    at s.mountComponent (ReactCompositeComponent.js:255)
    at Object.mountComponent (ReactReconciler.js:43)
R.t.render @ index.js:11
_renderValidatedComponentWithoutOwnerOrContext @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
_renderValidatedComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
performInitialMount @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
performInitialMount @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
performInitialMount @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
mountChildren @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
_createInitialChildren @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
performInitialMount @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
performInitialMount @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
performInitialMount @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
performInitialMount @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
performInitialMount @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
performInitialMount @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
performInitialMount @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
performInitialMount @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
performInitialMount @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
performInitialMount @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
mountComponent @ index.js:11
C @ helpers.js:6
perform @ index.js:11
A @ helpers.js:6
perform @ index.js:11
batchedUpdates @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
batchedUpdates @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:6
_renderNewRootComponent @ helpers.js:6
_renderSubtreeIntoContainer @ helpers.js:6
render @ helpers.js:6
D @ index.js:11
h @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:91
Qr @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:91
n @ springfox.js?v=3.0.0-SNAPSHOT:1
(anonymous) @ springfox.js?v=3.0.0-SNAPSHOT:1
s @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
(anonymous) @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
forEach.e.<computed> @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
v @ springfox.js?v=3.0.0-SNAPSHOT:1
u @ springfox.js?v=3.0.0-SNAPSHOT:1
Promise.then (async)
v @ springfox.js?v=3.0.0-SNAPSHOT:1
u @ springfox.js?v=3.0.0-SNAPSHOT:1
Promise.then (async)
v @ springfox.js?v=3.0.0-SNAPSHOT:1
u @ springfox.js?v=3.0.0-SNAPSHOT:1
Promise.then (async)
v @ springfox.js?v=3.0.0-SNAPSHOT:1
u @ springfox.js?v=3.0.0-SNAPSHOT:1
Promise.then (async)
v @ springfox.js?v=3.0.0-SNAPSHOT:1
u @ springfox.js?v=3.0.0-SNAPSHOT:1
Promise.then (async)
v @ springfox.js?v=3.0.0-SNAPSHOT:1
u @ springfox.js?v=3.0.0-SNAPSHOT:1
Promise.then (async)
v @ springfox.js?v=3.0.0-SNAPSHOT:1
u @ springfox.js?v=3.0.0-SNAPSHOT:1
(anonymous) @ springfox.js?v=3.0.0-SNAPSHOT:1
(anonymous) @ springfox.js?v=3.0.0-SNAPSHOT:1
(anonymous) @ springfox.js?v=3.0.0-SNAPSHOT:1
(anonymous) @ springfox.js?v=3.0.0-SNAPSHOT:1
s @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
(anonymous) @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
forEach.e.<computed> @ swagger-ui-bundle.js?v=3.0.0-SNAPSHOT:73
v @ springfox.js?v=3.0.0-SNAPSHOT:1
u @ springfox.js?v=3.0.0-SNAPSHOT:1
(anonymous) @ springfox.js?v=3.0.0-SNAPSHOT:1
(anonymous) @ springfox.js?v=3.0.0-SNAPSHOT:1
window.onload @ springfox.js?v=3.0.0-SNAPSHOT:1
load (async)
(anonymous) @ springfox.js?v=3.0.0-SNAPSHOT:1
r @ springfox.js?v=3.0.0-SNAPSHOT:1
(anonymous) @ springfox.js?v=3.0.0-SNAPSHOT:1
r @ springfox.js?v=3.0.0-SNAPSHOT:1
(anonymous) @ springfox.js?v=3.0.0-SNAPSHOT:1
(anonymous) @ springfox.js?v=3.0.0-SNAPSHOT:1
Show 35 more frames
root-injects.jsx:94 TypeError: Cannot read property 'url' of undefined
    at n.value (topbar.jsx:123)
    at n.R.t.render (root-injects.jsx:92)
    at s._renderValidatedComponentWithoutOwnerOrContext (ReactCompositeComponent.js:796)
    at s._renderValidatedComponent (ReactCompositeComponent.js:819)
    at s._updateRenderedComponent (ReactCompositeComponent.js:743)
    at s._performComponentUpdate (ReactCompositeComponent.js:721)
    at s.updateComponent (ReactCompositeComponent.js:642)
    at s.receiveComponent (ReactCompositeComponent.js:544)
    at Object.receiveComponent (ReactReconciler.js:122)
    at s._updateRenderedComponent (ReactCompositeComponent.js:751)

Is there something badly configured or is this a bug?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dilipkrishcommented, Jun 27, 2020

@desiderati Thanks for that great suggestion! ill add that in there

1reaction
dilipkrishcommented, Jun 27, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Springfox Reference Documentation - GitHub Pages
Migrating from existing 2.x version. Spring Boot Applications. Remove library inclusions of earlier releases. Specifically remove springfox- ...
Read more >
Suddenly Springfox Swagger 3.0 is not working with spring ...
I am using InteliJ IDEA, SpringBoot and Maven. When adding Swagger dependencies as: <dependency> <groupId>io.springfox</groupId> <artifactId> ...
Read more >
Setting up Swagger 3 With Spring Boot - Medium
So let's jump right in to the simple steps: Adding dependencies. Add the 3rd version springfox-boot-starter and springfox-swagger-ui to pom.xml ...
Read more >
springfox/springfox - Gitter
I'm using Springfox / Swagger / Spring Boot, and trying to figure out how to ... on the v3 release to be compatible...
Read more >
API Documentation with Springfox 3 - Microflash
Springfox v3 added support for OpenAPI 3 and Spring 5. It also comes with a ready-to-use Spring Boot starter which replaces a host...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found