Skip to content

Commit 161d350

Browse files
authoredOct 11, 2024··
fix Could not find a declaration file for module 'nextra' (#3422)
aa
1 parent 31de764 commit 161d350

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
 

‎.changeset/spotty-dingos-pretend.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'nextra': patch
3+
---
4+
5+
fix `Could not find a declaration file for module 'nextra'`

‎packages/nextra/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
},
1111
"exports": {
1212
"./package.json": "./package.json",
13-
".": "./dist/server/index.js",
13+
".": {
14+
"import": "./dist/server/index.js",
15+
"types": "./dist/server/index.d.ts"
16+
},
1417
"./loader": "./loader.cjs",
1518
"./components": {
1619
"import": "./dist/client/components/index.js",

0 commit comments

Comments
 (0)
Please sign in to comment.