rad@yt001:~/runtime-bridge-monitor$ sudo yarn build && yarn start
yarn run v1.22.5
$ next build
info - Using webpack 4. Reason: custom webpack configuration in next.config.js webpack5 | Next.js
Failed to load env.development config, skipping…
info - Checking validity of types
SyntaxError: Unexpected token (1:7)
at Parser.pp$4.raise (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123934:15)
at Parser.pp.unexpected (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:121798:10)
at Parser.pp$3.parseDynamicImport (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123387:12)
at Parser.pp$3.parseExprAtom (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123373:21)
at Parser.pp$3.parseExprSubscripts (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123198:21)
at Parser.pp$3.parseMaybeUnary (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123175:19)
at Parser.pp$3.parseExprOps (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123119:21)
at Parser.pp$3.parseMaybeConditional (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123102:21)
at Parser.pp$3.parseMaybeAssign (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123077:21)
at Parser.pp$3.parseParenAndDistinguishExpression (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123430:30)
at Parser.pp$3.parseExprAtom (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123339:43)
at Parser.pp$3.parseExprSubscripts (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123198:21)
at Parser.pp$3.parseMaybeUnary (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123175:19)
at Parser.pp$3.parseExprOps (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123119:21)
at Parser.pp$3.parseMaybeConditional (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123102:21)
at Parser.pp$3.parseMaybeAssign (/home/rad/runtime-bridge-monitor/node_modules/next/dist/compiled/webpack/bundle4.js:123077:21) {
pos: 7,
loc: Position { line: 1, column: 7 },
raisedAt: 8
}
你好,这个错误可以忽略。