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
In packages, I got ui-lib.
In projects/foo/client, I installed storybook.
Thing is, it can't handle the components coming from ui-lib [error-1].
I tried including the paths for the relevant rules of the webpack config, no success.
I tried using @storybook/preset-typescript's options, it stopped yelling at me about loaders[error-1] and instead is yelling about React being declared already [error-2]
Errors -
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I got a monorepo with the following structure -
root/packages//*
root/projects//*
In packages, I got
ui-lib
.In
projects/foo/client
, I installed storybook.Thing is, it can't handle the components coming from
ui-lib
[error-1].I tried including the paths for the relevant rules of the webpack config, no success.
I tried using
@storybook/preset-typescript
's options, it stopped yelling at me about loaders[error-1] and instead is yelling about React being declared already [error-2]Errors -
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
Identifier 'React' has already been declared
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions