Error when using PouchDB on next.js, "No native build was found..."
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
This error is probably the same as or related to #8754 . Here are more simplified replication steps:
### Reproduce
1. create Next.js project
npx create-next-app@13
2. npm install pouchdb
3. replace boilerplate app/page.js with this skeleton code:
```
import PouchDB from 'pouchdb';
export default function Home() {
return
}
```
4. npm run dev
--> error occurs
--> error occurs on both Intel Mac and M1 Mac
Error on M1 Mac:
```
Server Error
Error: No native build was found for platform=darwin arch=arm64 runtime=node abi=93 uv=1 armv=8 libc=glibc
...
```
Error on Intel Mac:
```
Server Error
Error: No native build was found for platform=darwin arch=x64 runtime=node abi=93 uv=1 libc=glibc
...
```
package.json:
```
"dependencies": {
"next": "13.5.6",
"pouchdb": "^8.0.1",
"react": "^18",
"react-dom": "^18"
},
```
Contributor guide
Assessment
This issue has not been assessed yet.