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';