Skip to content
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 install : Could not find a declaration file for module '@my/theme-kit' #21

Closed
rpelissier opened this issue Jan 25, 2023 · 1 comment

Comments

@rpelissier
Copy link

After a fresh yarn install to experiment with your fanstastic work. I tried a yarn dev and got the following error:

@my/spa:dev: ERROR in src/App.tsx:2:23
@my/spa:dev: TS7016: Could not find a declaration file for module '@my/theme-kit'. '/Users/renaud/DEV-PERSO/turborepo-boilerplate/packages/my-theme-kit/dist/index.js' implicitly has an 'any' type.
@my/spa:dev:   Try `npm i --save-dev @types/my__theme-kit` if it exists or add a new declaration (.d.ts) file containing `declare module '@my/theme-kit';`
@my/spa:dev:     1 | import { Button } from "@my/core";
@my/spa:dev:   > 2 | import { Thing } from "@my/theme-kit";
@my/spa:dev:       |                       ^^^^^^^^^^^^^^^
@my/spa:dev:     3 | import "@my/theme-kit/dist/tailwind.css";
@my/spa:dev:     4 | import React from "react";
@my/spa:dev:     5 | import "./App.css";
@MahdiTa97
Copy link
Owner

The bug has been fixed in the v2.0.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants