You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed the library "@googlemaps+markerclusterer" in a Nuxt 3 application and I have this problem during prerender.
Stack trace
ERROR Named export 'MarkerClusterer' not found. The requested module '.../node_modules/.pnpm/@[email protected]/node_modules/@googlemaps/markerclusterer/dist/index.umd.js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '.../node_modules/.pnpm/@[email protected]/node_modules/@googlemaps/markerclusterer/dist/index.umd.js';
const { MarkerClusterer } = pkg;
import { MarkerClusterer } from 'node_modules/.pnpm/@[email protected]/node_modules/@googlemaps/markerclusterer/dist/index.umd.js';
^^^^^^^^^^^^^^^
SyntaxError: Named export 'MarkerClusterer' not found. The requested module 'node_modules/.pnpm/@[email protected]/node_modules/@googlemaps/markerclusterer/dist/index.umd.js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'node_modules/.pnpm/@[email protected]/node_modules/@googlemaps/markerclusterer/dist/index.umd.js';
const { MarkerClusterer } = pkg;
The text was updated successfully, but these errors were encountered:
martio
added
triage me
I really want to be triaged.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
labels
Jun 19, 2024
I installed the library "@googlemaps+markerclusterer" in a Nuxt 3 application and I have this problem during prerender.
Stack trace
The text was updated successfully, but these errors were encountered: