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

React Build it not working


I tried to depoy React version (demo7) on vercel but it seems to be not working. I tried with both the edited version and the freshly downloaded version, and both seemed to show the same issue/error.

Fresh Install - https://test-pink-eight-23.vercel.app/

Edited Version - https://sales-ai-seven.vercel.app/

None of them are working after deployment but these are working well on the dev mode in local host. How do i fix this issue?


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 (4)


Hello?? I need faster reply???



Hi Advith,

Sorry for the delay.

If you are using Metronic v8.2.0 or lower versions with CRA, you need to update the homepage property in package.json.


"homepage": "/",


Regards,
Lauris Stepanovs,
Keenthemes Support Team



There is no file called "vite.config.ts" i checked with both edited version and fresh installed source file.



Hi Advith,

Thank you for reaching out to us.

On your previews, I see that images are still referring /metronic8/react/demo6/ which means that you haven't updated the base path property in vite.config.ts.

To fix this problem do the following:

  1. Update base property to from /metronic8/react/demo6/ to / in vite.config.ts.
  2. Globally in your project find and replace toAbsoluteUrl('/ with toAbsoluteUrl('.
  3. Rebuild and redeploy your project.



Regards,
Lauris Stepanovs,
Keenthemes Support Team
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  :(