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
Hi, I'm getting the following error message when I try to build the package.
npm run build
> build
> vite build
vite v4.5.3 building for production...
✓ 1 modules transformed.
✓ built in 91ms
[commonjs--resolver] Failed to resolve entry for package "@maptiler/leaflet-maptilersdk". The package may have incorrect main/module/exports specified in its package.json.
error during build:
Error: Failed to resolve entry for package "@maptiler/leaflet-maptilersdk". The package may have incorrect main/module/exports specified in its package.json.
at packageEntryFailure (file:///var/www/locations/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:28725:11)
at resolvePackageEntry (file:///var/www/locations/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:28722:5)
at tryNodeResolve (file:///var/www/locations/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:28453:20)
at Object.resolveId (file:///var/www/locations/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:28212:28)
at file:///var/www/gdar-locations/node_modules/rollup/dist/es/shared/node-entry.js:25544:40
at async PluginDriver.hookFirstAndGetPlugin (file:///var/www/locations/node_modules/rollup/dist/es/shared/node-entry.js:25444:28)
at async resolveId (file:///var/www/locations/node_modules/rollup/dist/es/shared/node-entry.js:24117:26)
at async ModuleLoader.resolveId (file:///var/www/locations/node_modules/rollup/dist/es/shared/node-entry.js:24531:15)
at async Object.resolveId (file:///var/www/locations/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:7910:10)
at async PluginDriver.hookFirstAndGetPlugin (file:///var/www/locations/node_modules/rollup/dist/es/shared/node-entry.js:25444:28)
It looks like the dist directory is missing from node_modules/@maptiler/leaflet-maptilersdk.
The text was updated successfully, but these errors were encountered:
uoc-kpf
changed the title
ES module version of NPM package not installing
ES module version of NPM package incomplete
Apr 18, 2024
Hello @uoc-kpf thank you for your patience. I understand it was almost a year but we were in the middle of low-level improvements of our SDK and we really wanted to investigate your issue.
Unfortunately I am not able to reproduce it easily. I can see that you were using vite v4.5.3 and probably leaflet-maptilersdk v2.0.0 - could you please prepare a minimal example presenting the issue and share it with us?
BTW. We just released v4.0.2 which adds TypeScript support. You could take a look and check if the issue occurs in this version as well.
Hi, I'm getting the following error message when I try to build the package.
It looks like the dist directory is missing from node_modules/@maptiler/leaflet-maptilersdk.
The text was updated successfully, but these errors were encountered: