Skip to content

Commit 06bff87

Browse files
otomadericclemmons
andauthored
Fix TypeScript error "Could not find a declaration file for module" (#84)
Co-authored-by: Eric Clemmons <[email protected]>
1 parent a9db3e1 commit 06bff87

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/rare-pants-help.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"click-to-react-component": patch
3+
---
4+
5+
Fix TypeScript error "Could not find a declaration file for module"

packages/click-to-react-component/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"name": "click-to-react-component",
44
"version": "1.1.0",
55
"description": "Option+Click your React components in your browser to open the source file in VS Code",
6-
"exports": "./src/index.js",
6+
"exports": {
7+
"import": "./src/index.js",
8+
"types": "./src/types.d.ts"
9+
},
710
"types": "src/types.d.ts",
811
"files": [
912
"src"

0 commit comments

Comments
 (0)