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
Hi, im trying to build npm package with dnt
dnt
Source code of this package contains imports from react
react
Path react refers to npm:react@18 in deno.json#imports
npm:react@18
deno.json#imports
When I add this comment before react import:
// @deno-types="npm:@types/react"
I have error during build:
src/react/use-bounding-client-rect.ts:2:63 - error TS6137: Cannot import type declaration files. Consider importing 'react' instead of '@types/react'. 2 import { type DependencyList, type RefObject, useState } from '@types/react';
How can i properly add react to this project with TS typings and mark it as peer dependency in dnt output?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, im trying to build npm package with
dnt
Source code of this package contains imports from
react
Path
react
refers tonpm:react@18
indeno.json#imports
When I add this comment before
react
import:I have error during build:
How can i properly add react to this project with TS typings and mark it as peer dependency in dnt output?
The text was updated successfully, but these errors were encountered: