Skip to content

Not working in nextjs middleware #349

@morgs32

Description

@morgs32

Here is the error.

- error ./node_modules/@linear/sdk/dist/index-es.min.js:1:22
Module not found: Can't resolve 'http'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./app/api/public/hello/route.ts
...

I assume it has to do with the graphql-request or isomorphic-unfetch dependencies. One of which is pulling in encoding...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions