Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Blazor .Net 8

I have bought the theme and was installing it in my blazor server app , Every thing was ok but when I run this command "npm install & npm run dev" it is giving me error . This is the error

"C:\Users\Shamas\source\repos\New Project\Project\Solution\Solution.UI\metronic>npm install & npm run dev

up to date, audited 602 packages in 2s

154 packages are looking for funding run npm fund for details

found 0 vulnerabilities npm error Missing script: "dev" npm error npm error To see a list of scripts, run: npm error npm run npm error A complete log of this run can be found in: C:\Users\Shamas\AppData\Local\npm-cache_logs\2024-09-13T19_51_29_747Z-debug-0.log

C:\Users\Shamas\source\repos\New Project\Project\Solution\Solution.UI\metronic>"

Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)

I am having the same issue. There is no dev script in package.json to run.

If I emulate the project in Visual Studio I get the same issue with web.d.ts although if I run dotnet run watch via cli the application starts. However, there are no assets (css or js) available I assume due to the failure to run npm run dev


Hi,

Thank you for reaching out to us.

Could you clarify which version of Metronic you're using?

Also, are you working with our Blazor .NET example app, or is this your own implementation?

Regards,
Lauris Stepanovs,
Keenthemes Support Team



I'm using .net 8
https://github.com/keenthemes/metronic-tailwind-html-integration
follwing this blazor project then try to execute these command
mentioned in this document

https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/blazor-server
on build getting this error

metronic-tailwind-blazor-server\metronic\node_modules\@types\node\stream\web.d.ts(469,56): error TS1005: Build:'?' expected.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(