文章目录
1. package.json空白
参考
输入webpack后无法打包:
ERROR in Entry module not found: SyntaxError:
\webpack_try\package.json (directory description file): SyntaxError: Unexpected end of JSON input
在子目录下添加空白的json配置文件是会出现报错,其原因是因为文件内容空白
2. package.json报错
参考
报错内容
Problems loading reference 'https://json.schemastore.org/package':
Unable to load schema from 'https://json.schemastore.org/package':
Request vscode/content failed unexpectedly without providing any details.
原因
因为某些原因无法连接到 Schema
解决方式:
设置离线模式方法: 在 User settings.json 中添加
“json.schemaDownload.enable”: false
3.webpack.config.js手动配置无效
报错:
No configuration file found and no output filename configured via Cli option
参考
把webp