We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I got this error when I try to build @styled-system/css with Storybook 6.2
ERR! TypeScript error in BaseButton.tsx(1,17): ERR! Could not find a declaration file for module '@styled-system/css' implicitly has an 'any' type. ERR! Try `npm i --save-dev @types/styled-system__css` if it exists or add a new declaration (.d.ts) file containing `declare module '@styled-system/css';` TS7016 ERR! ERR! > 1 | import css from "@styled-system/css"; ERR! | ^ ERR! 2 | import { ReactNode } from "react"; ERR! 3 | import styled from "styled-components"; ERR! 4 | import { ERR! Button.tsx ERR! TypeScript error in Button.tsx(1,17): ERR! Could not find a declaration file for module '@styled-system/css' implicitly has an 'any' type. ERR! Try `npm i --save-dev @types/styled-system__css` if it exists or add a new declaration (.d.ts) file containing `declare module '@styled-system/css';` TS7016 ERR! ERR! > 1 | import css from "@styled-system/css"; ERR! | ^ ERR! 2 | import styled from "styled-components"; ERR! 3 | import { compose, variant } from "styled-system"; ERR! 4 | import { BaseButton, BaseButtonProps } from "../BaseButton/BaseButton"; ERR!
The text was updated successfully, but these errors were encountered:
Have you tried running npm i --save-dev @types/styled-system__css?
npm i --save-dev @types/styled-system__css
Sorry, something went wrong.
No branches or pull requests
I got this error when I try to build @styled-system/css with Storybook 6.2
The text was updated successfully, but these errors were encountered: