-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fresh Angular + Storybook alpha.38 installation throws warnings #7355
Comments
I'm seeing this with a polymer storybook as well. (and probably other app types?) |
This commit ("FIX linting") appears to be what introduced the errors. If I remove line 552, then the |
Looks like removing the following lines gets rid of the errors:
|
I don't have any React experience, so this should probably be looked at by someone who does, but this appears to resolve the type issues: From reading prop-types issue #200, I'm guessing that all but the first one should be defined as The Looks like the first one ( |
In the meantime, one can patch-package a local install with this patch for
diff --git a/node_modules/@storybook/ui/dist/components/layout/container.js b/node_modules/@storybook/ui/dist/components/layout/container.js
index 35b1cfb..720d450 100644
--- a/node_modules/@storybook/ui/dist/components/layout/container.js
+++ b/node_modules/@storybook/ui/dist/components/layout/container.js
@@ -698,7 +698,7 @@ Layout.propTypes = {
showNav: _propTypes["default"].bool.isRequired,
showPanel: _propTypes["default"].bool.isRequired,
panelPosition: _propTypes["default"].string.isRequired,
- isToolshown: _propTypes["default"].string.isRequired
+ isToolshown: _propTypes["default"].bool.isRequired
}).isRequired,
viewMode: _propTypes["default"].oneOf(['story', 'info', 'docs', 'settings']),
theme: _propTypes["default"].shape({
diff --git a/node_modules/@storybook/ui/dist/components/sidebar/treeview/treeview.js b/node_modules/@storybook/ui/dist/components/sidebar/treeview/treeview.js
index 9db2012..15d3ffc 100644
--- a/node_modules/@storybook/ui/dist/components/sidebar/treeview/treeview.js
+++ b/node_modules/@storybook/ui/dist/components/sidebar/treeview/treeview.js
@@ -586,14 +586,14 @@ TreeState.propTypes = {
prefix: _propTypes["default"].string.isRequired,
dataset: _propTypes["default"].shape({}).isRequired,
selectedId: _propTypes["default"].string,
- Filter: _propTypes["default"].element,
- List: _propTypes["default"].element,
- Title: _propTypes["default"].element,
- Link: _propTypes["default"].element,
- Leaf: _propTypes["default"].element,
- Head: _propTypes["default"].element,
- Section: _propTypes["default"].element,
- Message: _propTypes["default"].element
+ Filter: _propTypes["default"].elementType,
+ List: _propTypes["default"].elementType,
+ Title: _propTypes["default"].elementType,
+ Link: _propTypes["default"].elementType,
+ Leaf: _propTypes["default"].elementType,
+ Head: _propTypes["default"].elementType,
+ Section: _propTypes["default"].elementType,
+ Message: _propTypes["default"].elementType
};
TreeState.defaultProps = {
selectedId: null,
|
Yo-ho-ho!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.0-alpha.43 containing PR #7408 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Hello, I'm on latest version and still having same issues. |
@MrBugatti which error are you seeing?
and this should be fixed by #7408
and this one has been around for awhile #6998
|
To Reproduce
Steps to reproduce the behavior:
sb init
alpha.38Expected behavior
Should work without warnings
Throws warnings to console
System:
The text was updated successfully, but these errors were encountered: