79196803

Date: 2024-11-17 08:46:06
Score: 1
Natty:
Report link

Making the global: false in next.config.ts:

import type { NextConfig } from "next";

const nextConfig: NextConfig = {
    webpack: (config) => {
        config.node = {
            global: false
        }
        return config;
    },
};

export default nextConfig;

and makeing dynamic import to normall Import like this:

import Map from '@/components/layout/map/here-map';
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Hacxk