MahdiTa97 / turborepo-boilerplate

A boilerplate base on TURBOREPO
https://mahdita97.github.io/turborepo-boilerplate/
94 stars 12 forks source link

Fresh install : Could not find a declaration file for module '@my/theme-kit' #21

Closed rpelissier closed 8 months ago

rpelissier commented 1 year ago

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 commented 8 months ago

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