Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Question about Metronic based Blazor project


Dear,
I've buy your Metronic based Blazor template.

I've see your Getting Started.

I've:
cd Starterkit/_keenthemes/tools
npm install
modify tools/package.json and remove "type": "module"
npm run build
but I've this error:
ERROR in js/scripts.bundle
Module not found: Error: Can't resolve './webpack/scripts.js' in 'D:\zzzTmp\metronic_blazor_v8.1.8_demo1\blazor_demo1\Starterkit\_keenthemes\tools'

Then, I've copy scripts.demo1.js in scripts.js and do npm run build and seems ok.

I've run dotnet watch, I see the site but if click any items in menu, I see always dashboard.

Do you think that my problem is connect with error with npm run build ?
Or Is it correct copy scripts.demo1.js in scripts.js and I've others errors can to checked ?

Regards,
Rinaldo


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 Rinaldo,

I am sorry to hear that you have faced webpack issue.

We have reproduced this error and it is related to our current webpack configuration, we will fix this issue in the next release.

For now, as a temporary solution, you can use our gulp task to bundle our assets.
For gulp task, you need to return "type": "module" in package.json.
And then from the tools folder, you can run command below to bundle our assets.

gulp --demo1


Please note that our Metronic Blazor version is a Starterkit, which contains a fully functional layout and a few pages for start (New Password, Reset Password, Sign In, Sign Up, Default Dashboard Page, 500 error page, and 404 error page).

You can easily add any other pages by referring to our HTML version, all JS, and CSS code required for any page is already included in our Blazor Starterkit, all you need to do is just copy HTML markup, include JS file, and initialize it on your page (if it is required).

Let me know if you will need any further help on this.

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  :(