Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Metornic Demo4 template is causing errors during the implementation of react-leaflet choropleth map


Why is the implementation of Choropleth map in the Metronic template DEMO 4 giving errors but when same code is implemented through scratch in a react app, it executes the code correctly?
I searched the method to resolve the error in stack overflow and followed the solution but the error persists. Whereas using the same code with same file name and folder structure in a separate react app works completely fine.
Screenshots of the console tab is attached below.

<img src="https://drive.google.com/file/d/17dMFklv623kM93-oshGhr4CCflocNgf9/view?usp=sharing" />

<img src="https://drive.google.com/file/d/1NQF5T3N8l7yl4SvLmXmyJ5Ocjv9_d27V/view?usp=sharing" />

<img src="https://drive.google.com/file/d/18SqdP6tG5IHPcNdq-1EPytQlYVJTzCl6/view?usp=sharing" />

<img src="https://drive.google.com/file/d/1iQVNrHyjamphevzhpUOh4Jy3vOXEE_qP/view?usp=sharing" />


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

Unfortunately, we aren't able to help you with 3d-party library issues and your custom code, cause we aren't able to reproduce your case.
Anyway, our React application is based on CRA https://create-react-app.dev/, and we don't use anything non-standard for the CRA settings. If it works on CRA based skeleton app, then it works in our application also.

Regards,
Keenthemes support


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(