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

Error with webpack


I'm trying "npm run build" but I receive the below error. I have already remove "type": "module" as said in the notes.

Error

>> Failed to compile!

resolve './webpack/scripts.js' in 'C:\test\starterkit\_keenthemes\tools'
using description file: C:\test\starterkit\_keenthemes\tools\package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration
using description file: C:\test\starterkit\_keenthemes\tools\package.json (relative path: ./webpack/scripts.js)
no extension
Field 'browser' doesn't contain a valid alias configuration
C:\test\starterkit\_keenthemes\tools\webpack\scripts.js doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
C:\test\starterkit\_keenthemes\tools\webpack\scripts.js.js doesn't exist
.scss
Field 'browser' doesn't contain a valid alias configuration
C:\test\starterkit\_keenthemes\tools\webpack\scripts.js.scss doesn't exist
as directory
C:\test\starterkit\_keenthemes\tools\webpack\scripts.js doesn't exist
ERROR in js/scripts.bundle
Module not found: Error: Can't resolve './webpack/scripts.js' in 'C:\test\starterkit\_keenthemes\tools'


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,

Sorry for the inconvenience you're facing with the error while running `npm run build`. To provide you with the best assistance, could you please let me know which application or framework you are using? This information will help me to understand the context and provide you with a more accurate solution.

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