在Next.js生成过程中出错:模块解析失败:意外字符'#'

时间:2019-05-31 17:32:30

标签: javascript webpack build next.js asynchronous-messaging-protocol

在Next.js应用程序(带有自定义server.js和next.config.js)中进行“纱线构建”之后,终端显示奇怪的错误。

Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
> #!/usr/bin/env node
| /**
|  * @license

> Build error occurred
Error: > Build failed because of webpack errors```

What's wrong with that?

0 个答案:

没有答案