Skip to content

Commit

Permalink
fix ts error Cannot find module 'nextra/filter-route-locale' (#2182)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Aug 19, 2023
1 parent 7b9b238 commit 46743ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .changeset/sour-cups-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'nextra': patch
---

fix TS error `Cannot find module 'nextra/filter-route-locale' or its corresponding type declarations.` while importing

```js
import filterRouteLocale from "nextra/filter-route-locale";
```
3 changes: 3 additions & 0 deletions packages/nextra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@
"mdx": [
"./dist/mdx.d.mts"
],
"filter-route-locale": [
"./dist/filter-route-locale.d.mts"
],
"normalize-pages": [
"./dist/normalize-pages.d.mts"
],
Expand Down

1 comment on commit 46743ba

@vercel
Copy link

@vercel vercel bot commented on 46743ba Aug 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.