Skip to content

JavaScript SDK doesn't play nice with nextjs webpack #842

Open
@levkk

Description

@levkk

So I tried the JavaScript SDK (npm install pgml, version 0.8.0) with Vercel, specifically next.js, which uses webpack to build and distribute the app.

Webpack typically should be able to collect native modules, when using node-loader, but in the case of nextjs at least it was placing it in the wrong directory and I kept getting module not found. I'm not sure if it's a bug with the webpack configuration, with nextjs, or with our SDK.

It would be nice to have a few example apps that use common frameworks like nextjs, express and tools like webpack to make sure that our package is usable in typical settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsdk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions