本期视频登录后即可观看

vite 成功上位后如何与 Breeze 完成完美融合

本期 Laravel Vite 视频教程咱们看一看官方推荐的脚手架 Breeze 如何与 vite 协调一致,完成资源编译工作
德雨 2022.12.31 12:35

看不懂一直报错

 v4.0.3  ready in 380 ms

  ➜  Local:   http://127.0.0.1:5173/
  ➜  Network: use --host to expose
  ➜  press h to show help

  LARAVEL v9.45.1  plugin v0.7.3

  ➜  APP_URL: http://localhost
node:internal/errors:464
    ErrorCaptureStackTrace(err);
    ^

Error: ENOSPC: System limit for number of file watchers reached, watch '/www/wwwroot/Laravel9.117112.xyz/vendor/nette/schema/src/Schema/Elements/Base.php'
    at FSWatcher.<computed> (node:internal/fs/watchers:244:19)
    at Object.watch (node:fs:2247:34)
    at createFsWatchInstance (file:///www/wwwroot/Laravel9.117112.xyz/node_modules/vite/dist/node/chunks/dep-0bae2027.js:48570:17)
    at setFsWatchListener (file:///www/wwwroot/Laravel9.117112.xyz/node_modules/vite/dist/node/chunks/dep-0bae2027.js:48617:15)
    at NodeFsHandler._watchWithNodeFs (file:///www/wwwroot/Laravel9.117112.xyz/node_modules/vite/dist/node/chunks/dep-0bae2027.js:48772:14)
    at NodeFsHandler._handleFile (file:///www/wwwroot/Laravel9.117112.xyz/node_modules/vite/dist/node/chunks/dep-0bae2027.js:48836:23)
    at NodeFsHandler._addToNodeFs (file:///www/wwwroot/Laravel9.117112.xyz/node_modules/vite/dist/node/chunks/dep-0bae2027.js:49078:21)
Emitted 'error' event on FSWatcher instance at:
    at FSWatcher._handleError (file:///www/wwwroot/Laravel9.117112.xyz/node_modules/vite/dist/node/chunks/dep-0bae2027.js:50270:10)
    at NodeFsHandler._addToNodeFs (file:///www/wwwroot/Laravel9.117112.xyz/node_modules/vite/dist/node/chunks/dep-0bae2027.js:49086:18) {
  errno: -28,
  syscall: 'watch',
  code: 'ENOSPC',
  path: '/www/wwwroot/Laravel9.117112.xyz/vendor/nette/schema/src/Schema/Elements/Base.php',
  filename: '/www/wwwroot/Laravel9.117112.xyz/vendor/nette/schema/src/Schema/Elements/Base.php'
}


国营 2022.12.31 12:53

你可以运行 npm run build编译资源,这个错误你可以到bing上搜索自行解决。你要学会先用起来再慢慢理解,不要急着一开始就什么都明白,我们读书上学将近20年,不也是循序渐进的过程吗,很多人一工作就开始急火攻心,反倒失了平常心。

微信扫码登录