Closed rschristian closed 3 years ago
That looks like some issue on your side given that interface is still exported in the latest version.
You're right, it was something in my configuration. Sorry.
Closing for now as it doesn't really bother anyone. PR is there, it might need some updating, but not worth the trouble for now.
Intended outcome
I'm building an application, and after doing some work with MobX, I ran a production build to ensure everything was working as expected, but it errored out. Development build does work exactly as intended, however.
Actual outcome
I get the following error:
How to reproduce the issue
Creating a simple component will trigger the issue:
Nothing more advanced than this needed.
Versions
Browsing through @types/react, I did notice they deprecated
RefForwardingComponent
, but even going to an older version (16.9.19
) didn't fix this problem. Strangely, if I editobserver.d.ts
innode_modules
, and import React there (import React from 'react';
), the production build works just fine. Just something I noticed.