Did webpack report the wrong package? And the packaged output file is not the specified bundle.js

configuration in package.json

{
  "name": "pack",
  "version": "1.0.0",
  "description": "",
  "main": "app/main.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "gx",
  "license": "ISC",
  "devDependencies": {
    "webpack": "^4.22.0",
    "webpack-cli": "^3.1.2"
  }
}

File structure
enter the packaged command node_modules.binwebpack appmain.js publicbundle.js to report an error



ERROR in multi ./app/main.js public/bundle.js
Module not found: SyntaxError: E:\Pack\package.json (directory description file): SyntaxError: E:\Pack\package.json (directory de
scription file): SyntaxError: Unexpected token m in JSON at position 78
 @ multi ./app/main.js public/bundle.js main[0]

ERROR in multi ./app/main.js public/bundle.js
Module not found: SyntaxError: E:\Pack\package.json (directory description file): SyntaxError: E:\Pack\package.json (directory de
scription file): SyntaxError: Unexpected token m in JSON at position 78
 @ multi ./app/main.js public/bundle.js main[1]

want to help find the problem?

Sep.07,2021

node_modules\.bin\webpack app\main.js --output public\bundle.js
The

command is not used correctly. You should add-- output indicates that public\ bundle.js is the output file

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e485d5-59231.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e485d5-59231.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?