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
We've been implementing ARC, utilizing Storybook, and several other utilities. We're running into a problem at the moment, though. The issue comes when the .forEach statement inside of src/components/index.js. When attempting to load the example site or the storybooks dashboard we're getting an error:
Cannot read property 'displayName' of undefined
TypeError: Cannot read property 'displayName' of undefined
at createStyledComponent (webpack:///./~/styled-components/lib/models/StyledComponent.js?:166:106)
at eval (webpack:///./~/styled-components/lib/constructors/styled.js?:28:14)
at eval (webpack:///./src/components/sections/Header/index.js?:40:75)
at Object.<anonymous> (http://localhost:9001/static/preview.bundle.js:4046:2)
at __webpack_require__ (http://localhost:9001/static/preview.bundle.js:556:30)
at fn (http://localhost:9001/static/preview.bundle.js:87:20)
at webpackContext (webpack:///./src/components_\.\/%5B^\/%5D+\/%5B^\/%5D+\/index\.js$?:42:9)
at eval (webpack:///./src/components/index.js?:7:35)
at Array.forEach (native)
at eval (webpack:///./src/components/index.js?:5:12)
Further investigation yielded that SOME of the keys are being populated, but not all. And, unfortunately because of this, by the time the import statement attempts to resolve, the modules are not yet resolved so we only get a partial object containing a limited number of the components.
Hey guys,
We've been implementing ARC, utilizing Storybook, and several other utilities. We're running into a problem at the moment, though. The issue comes when the
.forEach
statement inside ofsrc/components/index.js
. When attempting to load the example site or the storybooks dashboard we're getting an error:Further investigation yielded that SOME of the keys are being populated, but not all. And, unfortunately because of this, by the time the
import
statement attempts to resolve, the modules are not yet resolved so we only get a partial object containing a limited number of the components.Current Implementation
src/components/index.js
src/components/*/*/index.js
Our hacky solution
Our interim solution was very hacky and much less than ideal.
src/components/index.js
src/components/*/*/index.js
The text was updated successfully, but these errors were encountered: