Skip to content

Cannot find module 'preact/compat' when using the next function #48

@FunctionDJ

Description

@FunctionDJ

I have a Nest.js + Next.js setup where Nest calls the next() function to start the framework where i pass withPreact(). However, i get the error Cannot find module 'preact/compat'. I've followed the instructions from the README. What am i doing wrong?

How i'm calling Next:

      this.server = next({
        dev: !isProduction,
        dir: "./src/client",
        conf: withPreact()
      });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions