You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I seem to have just gotten this working for me, though I'm not totally happy with the solution. The root of the problem seems to be that type-component is in the dependencies, but type isn't. When webpack is going through looking for it's require statements, it's finding a require for both. It doesn't care that we only ever use one or the other, it's going to try to bundle them both anyways. The problem is that type can't be found in that context. I tried having type be a dependency of the parent project, but it didn't seem to care much.
My work-around was to alias "type" to "type-component" in my webpack config. This means type-component probably gets bundled twice... but it bundles. However, it could have strange effects in other dependencies that may also require "type"
The text was updated successfully, but these errors were encountered: