TechStark / opencv-js

OpenCV JavaScript version for node.js or browser
https://npmjs.com/@techstark/opencv-js
Apache License 2.0
409 stars 36 forks source link

doesn't support nextjs 14.1.0 #54

Open ChangHyun2 opened 7 months ago

ChangHyun2 commented 7 months ago
  1. error log image image

  2. nextjs config

/** @type {import('next').NextConfig} */
const nextConfig = {
  webpack5: true,
  webpack: (
    config,
    { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }
  ) => {
    config.resolve.fallback = {
      fs: false,
      path: false,
      crypto: false,
    };

    return config;
  },
};

export default nextConfig;
  1. temporary solution

After downgrading to nextjs 14.0.4, it works well.

christianstamati commented 7 months ago

I am getting the same error.

christianstamati commented 3 months ago

Any solution to this problem?