This repository was archived by the owner on Nov 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
import React from 'react' doesn't work #62
Comments
Example of this is interface IProps {
onChange: (event: React.ChangeEvent<HTMLInputElement>);
} ... this will render as |
Normally Typescript disallows
I assume that this project simply haven't set that option and it therefor fails for every project who have set it too true. edit It seems to be set for this project, so then I'm unsure what it is. |
Specify path to your {
loader: require.resolve('react-docgen-typescript-loader'),
options: {
tsconfigPath: path.resolve(__dirname, '../tsconfig.json')
}
}, |
@dizel3d - Thanks! That did the trick! I thought I'd specified that, but it turns out I'd only specified it for |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Uh oh!
There was an error while loading. Please reload this page.
Changing the following:
Seems to break
react-docgen-typescript-loader
's ability to generate docgen for components in the file.The text was updated successfully, but these errors were encountered: