Skip to content
New issue

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

Error when using PouchDB on next.js, "No native build was found..." #8820

Open
suregi opened this issue Nov 12, 2023 · 1 comment
Open

Error when using PouchDB on next.js, "No native build was found..." #8820

suregi opened this issue Nov 12, 2023 · 1 comment

Comments

@suregi
Copy link

suregi commented Nov 12, 2023

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 <div>Test</div>;
}
  1. 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"
  },
@DbPtZn
Copy link

DbPtZn commented May 7, 2024

I also encountered this issue when using PouchDB in NestJS and then trying to build it with Webpack. Of course, if I don't use Webpack for building and instead use the native build of Nest, I don't encounter this problem. However, I would prefer to be able to bundle the service into my Electron application.😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants