next-plugin-preact icon indicating copy to clipboard operation
next-plugin-preact copied to clipboard

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

Open FunctionDJ opened this issue 3 years ago • 0 comments

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()
      });

FunctionDJ avatar Oct 29 '21 22:10 FunctionDJ