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

metronic spring foes not build

Medtronic spring does not work .

Hi, I am following the instructions and I am getting following errors When I run nom run build

ERROR in ./webpack/plugins/plugins.js 101:17-71 Module not found: Error: Can't resolve 'countup.js/dist/countUp.withPolyfill.min.js' in '/Users/***/dev/metronic-spring/starterkit/_keenthemes/tools/webpack/plugins'

ERROR in js/scripts.bundle Module not found: Error: Can't resolve './webpack/scripts.js' in '/Users/***/dev/metronic-spring/starterkit/_keenthemes/tools'

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

Hi,

I apologize for the inconvenience you're experiencing with the error during the build process. We are working on a solution to include in the next update of the theme.

It appears that the error is related to the countup.js plugin and its compatibility with the build process. To resolve this issue, you can try the following workaround:

  1. Locate the file asp.net-core/Starterkit/_keenthemes/tools/package.json in your project directory.
  2. Open the package.json file in a text editor.
  3. Look for the line that specifies the version of countup.js, which should be something like "countup.js": "^2.0.7",.
  4. Modify the line to set the countup.js version to "2.0.7" without the caret (^) symbol. The updated line should look like "countup.js": "2.0.7",.
  5. Save the changes to the package.json file.

By specifying the exact version without the caret symbol (^), you ensure that the build process uses the specified version of countup.js, which may resolve the issue.

After making this change, try running the npm run build command again to bundle the theme assets. Hopefully, this workaround will resolve the error you encountered.

If the issue persists or you need further assistance, please provide more information about your project setup, such as the version of Metronic you are using and any relevant configuration files.

Thanks

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