diff --git a/cspell/custom-dict.txt b/cspell/custom-dict.txt index bd32a808e9..740f4466db 100644 --- a/cspell/custom-dict.txt +++ b/cspell/custom-dict.txt @@ -30,6 +30,7 @@ Sonarqube Stegen T04T40NHX Truncator +Turbopack Twitterbot WSL Whistleblower diff --git a/frontend/next.config.ts b/frontend/next.config.ts index a1a585bd53..ff4ca3667b 100644 --- a/frontend/next.config.ts +++ b/frontend/next.config.ts @@ -32,6 +32,7 @@ const nextConfig: NextConfig = { // https://nextjs.org/docs/app/api-reference/config/next-config-js/productionBrowserSourceMaps productionBrowserSourceMaps: true, serverExternalPackages: ['import-in-the-middle', 'require-in-the-middle'], + transpilePackages: ['@react-leaflet/core', 'leaflet', 'react-leaflet', 'react-leaflet-cluster'], ...(isLocal ? {} : { output: 'standalone' }), } diff --git a/frontend/package.json b/frontend/package.json index 0b8ed36f23..447130ee6d 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "build": "next build", - "dev": "next dev --port 3000", + "dev": "next dev --port 3000 --turbo", "format": "prettier --log-level warn --write .", "format:check": "prettier --check .", "graphql-codegen": "graphql-codegen --config graphql-codegen.ts", diff --git a/frontend/src/components/ChapterMap.tsx b/frontend/src/components/ChapterMap.tsx index 4c36832d77..77115bdea9 100644 --- a/frontend/src/components/ChapterMap.tsx +++ b/frontend/src/components/ChapterMap.tsx @@ -10,7 +10,6 @@ import { MapContainer, TileLayer, Marker, Popup, useMap } from 'react-leaflet' import MarkerClusterGroup from 'react-leaflet-cluster' import type { Chapter } from 'types/chapter' import type { UserLocation } from 'utils/geolocationUtils' -import 'leaflet.markercluster' import 'leaflet/dist/leaflet.css' import 'leaflet.markercluster/dist/MarkerCluster.css' import 'leaflet.markercluster/dist/MarkerCluster.Default.css'