Esri / esri-leaflet-renderers

Plugin for Esri Leaflet to use drawing information defined in the feature service
51 stars 33 forks source link

Hi When deploying a docker the package gives this error and does not render a map #173

Closed Mwalima closed 1 year ago

Mwalima commented 2 years ago

Uncaught TypeError: Cannot read properties of undefined (reading 'addInitHook') at esri-leaflet-renderers-debug.js:1186:1 at Object.5Kqs (esri-leaflet-renderers-debug.js:5:63) at t (bootstrap d126f5938059b6ed508e:54:1) at Object.NHnr (info.vue:27:33) at t (bootstrap d126f5938059b6ed508e:54:1) at window.webpackJsonp (bootstrap d126f5938059b6ed508e:25:1) at app.5da9700bc295f8dc6fc5.js:1:1

eny suggestions?

gavinr commented 2 years ago

Hi, thank you for reporting this issue. Could you please provide replication case steps to show how to see this issue happening? Also, does the same issue happen when you're not using docker? How are you installing the library? Or are you using the CDN URL?

Mwalima commented 2 years ago

The app is written in vuejs version: Node version :12.18.0 Npm version: 6.14.5

It also happens without the docker build. Just npm run dev @.***

I send you the package json:

"scripts": { "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", "start": "npm run dev", "unit": "jest test/unit/specs --coverage", "e2e": "node test/e2e/runner.js", "test": "npm run unit && npm run e2e", "lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs", "build": "node build/build.js" }, "dependencies": { "arcgis": "^1.0.2", "axios": "^0.20.0", "esri-leaflet-renderers": "^2.1.3", "leaflet": "^1.4.0", "proj4leaflet": "^1.0.2", "promise-polyfill": "^7.1.2", "vue": "^2.5.21", "vue-css-donut-chart": "^1.0.2", "vue-router": "^3.0.2", "vuex": "^3.0.1" }, "devDependencies": { "autoprefixer": "^7.1.2", "babel-core": "^6.22.1", "babel-eslint": "^8.2.1", "babel-helper-vue-jsx-merge-props": "^2.0.3", "babel-loader": "^7.1.1", "babel-plugin-syntax-jsx": "^6.18.0", "babel-plugin-transform-runtime": "^6.22.0", "babel-plugin-transform-vue-jsx": "^3.5.0", "babel-preset-env": "^1.3.2", "babel-preset-stage-2": "^6.22.0", "chalk": "^2.0.1", "copy-webpack-plugin": "^4.6.0", "css-loader": "^0.28.0", "eslint": "^4.15.0", "eslint-config-standard": "^10.2.1", "eslint-friendly-formatter": "^3.0.0", "eslint-loader": "^1.7.1", "eslint-plugin-import": "^2.14.0", "eslint-plugin-node": "^5.2.0", "eslint-plugin-promise": "^3.4.0", "eslint-plugin-standard": "^3.0.1", "eslint-plugin-vue": "^4.0.0", "extract-text-webpack-plugin": "^3.0.0", "file-loader": "^1.1.4", "friendly-errors-webpack-plugin": "^1.6.1", "html-webpack-plugin": "^2.30.1", "node-notifier": "^5.3.0", "node-sass": "^4.12.0", "optimize-css-assets-webpack-plugin": "^3.2.0", "ora": "^1.2.0", "portfinder": "^1.0.20", "postcss-import": "^11.0.0", "postcss-loader": "^2.0.8", "postcss-url": "^7.2.1", "rimraf": "^2.6.0", "sass-loader": "^6.0.6", "semver": "^5.6.0", "shelljs": "^0.7.6", "uglifyjs-webpack-plugin": "^1.3.0", "url-loader": "^0.5.8", "vue-loader": "^13.7.3", "vue-style-loader": "^3.0.1", "vue-svg-loader": "^0.11.0", "vue-template-compiler": "^2.5.21", "webpack": "^3.6.0", "webpack-bundle-analyzer": "^2.9.0", "webpack-dev-server": "^2.11.3", "webpack-merge": "^4.1.5" }, "engines": { "node": ">= 6.0.0", "npm": ">= 3.0.0" }, "browserslist": [ "> 1%", "last 2 versions", "not ie <= 8" ] }

Map.vue:

Dakenatlas.vue:

Van: Gavin Rehkemper @.> Verzonden: donderdag 31 maart 2022 17:48 Aan: Esri/esri-leaflet-renderers @.> CC: Mwalima @.>; Author @.> Onderwerp: Re: [Esri/esri-leaflet-renderers] Hi When deploying a docker the package gives this error and does not render a map (Issue #173)

Hi, thank you for reporting this issue. Could you please provide replication case steps to show how to see this issue happening? Also, does the same issue happen when you're not using docker? How are you installing the library? Or are you using the CDN URL?

— Reply to this email directly, view it on GitHubhttps://github.com/Esri/esri-leaflet-renderers/issues/173#issuecomment-1084770860, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABDQOYMXZ47YT534SXMRZOLVCXCMJANCNFSM5SE7ERXQ. You are receiving this because you authored the thread.Message ID: @.**@.>>