We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have code like this:
import React = require('react'); import ReactRouter = require('react-router'); import cbox = require('./components/commentbox') import Route = ReactRouter.Route; var routes = ( <Route name="app" path="/" handler={cbox.CommentBox}> </Route> ); React.render( <cbox.CommentBox />, document.getElementById('content') );
Note that I am clearly referencing and use ReactRouter here to create the Route alias.
ReactRouter
Route
However, the code produced does not import react-router:
react-router
define(["require", "exports", 'react', './components/commentbox'], function (require, exports, React, cbox) { var Route = ReactRouter.Route; var routes = (React.createElement(Route, {"name": "app", "path": "/", "handler": cbox.CommentBox})); React.render(React.createElement(cbox.CommentBox, null), document.getElementById('content')); });
Expected Behavior
Since ReactRouter is referenced in the code, the react-router lib should have been in the list of imports.
The text was updated successfully, but these errors were encountered:
I'm having exactly the same problem, but importing with ES6 style and compiling to system. Note that this only occurs when importing react-router.
Sorry, something went wrong.
Handle indirect imports of JSX elements from external modules
590569b
Fixes microsoft#4675
RyanCavanaugh
No branches or pull requests
I have code like this:
Note that I am clearly referencing and use
ReactRouter
here to create theRoute
alias.However, the code produced does not import
react-router
:Expected Behavior
Since
ReactRouter
is referenced in the code, thereact-router
lib should have been in the list of imports.The text was updated successfully, but these errors were encountered: