NotionCompatAPI missing declaration file
pnodet opened this issue · comments
Paul Nodet commented
Hi!
When using the NotionCompatAPI
from 'notion-compat' currently version "6.16.0" the declaration file is not emitted or present in the dist folder.
Janek Szynal commented
I'm having the same problem, or at least so I think:
Type error: Could not find a declaration file for module 'notion-compat'. '/vercel/path0/node_modules/notion-compat/build/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/notion-compat` if it exists or add a new declaration (.d.ts) file containing `declare module 'notion-compat';`
2 | import * as React from "react"
3 | import NotionPage from "../ui/notion-page"
> 4 | import { NotionCompatAPI } from "notion-compat"
| ^
5 | import getProjectsFromNotion from "../lib/getProjectsFromNotion"
6 |
7 | // Next.js setting: Give a 404 for any slug that's not on the generateStaticParams() list
error: script "build" exited with code 1
Error: Command "bun run build" exited with 1