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

Typescript demo errors on 1.0.1 #604

Closed
wallzero opened this issue Feb 14, 2020 · 1 comment
Closed

Typescript demo errors on 1.0.1 #604

wallzero opened this issue Feb 14, 2020 · 1 comment

Comments

@wallzero
Copy link
Contributor

The @uirouter/react demo's currently throw console errors in the browser when running demo/typescript.

Steps:

  • checkout @uirouter/react
  • use master or switch to latest tags/1.0.1
  • yarn install
  • yarn build
  • cd ./demo/typescript
  • yarn install
  • yarn start

Browser console:

Transition Rejection($id: 0 type: 6, message: The transition errored, detail: TypeError: Cannot read property 'reduce' of undefined)

TypeError: Cannot read property 'reduce' of undefined
    at ResolveContext.../../node_modules/@uirouter/core/lib/resolve/resolveContext.js.ResolveContext.resolvePath (resolveContext.js:122)
    at lazyResolveState (resolve.js:35)
    at invokeCallback (transitionHook.js:94)
    at TransitionHook.../../node_modules/@uirouter/core/lib/transition/transitionHook.js.TransitionHook.invokeHook (transitionHook.js:99)
    at transitionHook.js:51
@christopherthielen
Copy link
Member

fixed in 1.0.2 by #606

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

2 participants