Closed mtraynham closed 4 years ago
I created a simple ASP.NET CORE 2.0 MVC application and started plugging in an NG1 app. This is the first time I encountered the new updates and cannot seem to get the type definitions to resolve. I have been through the closed linked issue attempting what I found there. I searched SO for an Q&A but found nothing.
Typescript just throws the standard TS2307. Cannot find module '@uirouter/core'
Please let me know what other details would help.
UPDATE 2018/02/05
I have updated my project with expectation that this might have been resolved.
Test 1 UIRouter 1.0.14 Typescript 2.6.2
Test 2 UIRouter 1.0.14 Typescript 2.7.1
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This does not mean that the issue is invalid. Valid issues may be reopened.
Thank you for your contributions.
This issue tracker is for Bug Reports and Feature Requests only. Please direct requests for help to StackOverflow. See http://bit.ly/UIR-SOF for details.
This is a:
My version of UI-Router is: 1.0.6 (1.0.5 works correctly)
Bug Report
Current Behavior:
import {StateService} from '@uirouter/angularjs';
returns anundefined
object.Expected Behavior:
import {StateService} from '@uirouter/angularjs';
returns the StateServiceI believe this a bug with how the release/ui-router-angular.js is generated and the issue is exposed by this particular commit.
With 1.0.5, the package.json
main
path pointed to lib/index.js. Within that (compiled) file, there is a re-export of all@uirouter/core
objects.The important line here being:
Now with 1.0.6, the package.json
main
path points to release/ui-router-angularjs.js. This file contains no such line that would have a similar re-export.Link to Plunker that reproduces the issue:
http://bit.ly/UIR-Plunk