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

Using Symfony Demo 1 "npm run build" Module not found: Error: Can't resolve './src'


Hi,

I am using metronic_symfony_v8.1.8_demo1 template. I am facing issues while trying to compile and build the assets by following the documentation (https://preview.keenthemes.com/symfony/metronic/docs/getting-started).
1) I am not able to find _keenthemes/tools in the starterkit folder, therefore I am navigating to starterkit/assets/_keenthemes/tools. Not sure if I am in the right direction, your help and advise is very much appreciated.
2) After run the npm install command and remove "type": "module" in starterkit/assets/_keenthemes/tools/package.json, then I proceed to execute npm run build command. However, I am facing issue on this execution and following is error details and need help on this.

Error after executing npm run build
ERROR in main
Module not found: Error: Can't resolve './src' in '\starterkit\assets\_keenthemes\tools'
resolve './src' in '\starterkit\assets\_keenthemes\tools'
using description file: \starterkit\assets\_keenthemes\tools\package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration
using description file: \starterkit\assets\_keenthemes\tools\package.json (relative path: ./src)
no extension
Field 'browser' doesn't contain a valid alias configuration
\starterkit\assets\_keenthemes\tools\src doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
\starterkit\assets\_keenthemes\tools\src.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
\starterkit\assets\_keenthemes\tools\src.json doesn't exist
.wasm
Field 'browser' doesn't contain a valid alias configuration
\starterkit\assets\_keenthemes\tools\src.wasm doesn't exist
as directory
\starterkit\assets\_keenthemes\tools\src doesn't exist

webpack 5.82.0 compiled with 1 error and 1 warning in 358 ms


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


Thank you for bringing this issue to our attention. We apologize for any inconvenience caused. Our team will investigate the problem and work on finding a solution as quickly as possible. Once we have identified the cause and resolved the issue, we will provide you with the appropriate solution. Thank you for your patience and understanding.



Hi,

Apologies for the inconvenience. Please download the package again. We have made updates and fixes to the zip file.

https://devs.keenthemes.com/metronic/symfony

Thanks



Hi,

I ve the latest version (metronic_symfony_v8.2.0_demo1) but i still have the same problem.

Thanks


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