Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

您好,请问我做使用本例,运行到Webpack -w 时报错 #2

Copy link
Copy link

Description

@wmle1982
Issue body actions

Executing post-build scripts
Hash: 9ffeb3750ff7ee08fa96
Version: webpack 1.14.0
Time: 8246ms
Asset Size Chunks Chunk Names
bundle.js 315 kB 0 [emitted] main
bundle.js.map 589 kB 0 [emitted] main
+ 71 hidden modules
'sed' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�����������
D:\pixijsv4\Web-Rtmp\node_modules\webpack-shell-plugin\lib\index.js:168
throw error;
^

Error: Command failed: C:\Windows\system32\cmd.exe /s /c "sed "s/{{buildTime}}/$(date)/g" index.template.html > index.html"
'sed' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�����������

at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:477:12)


bundle.js  bundle.js.map  这两个文件编译成功了,但是因为时间不能生成index.html,我手动去把index.template.html内容拷贝进去,运行又报错:

rtmpSession...cb... bundle.js:214:5
Begin LOOP bundle.js:221:6
sending connect bundle.js:156:6
05 60 57 4e 00 00 a7 14 00 00 00 00
02 00 07 63 6f 6e 6e 65 63 74 00 3f f0 00 00 00
00 00 00 03 00 03 61 70 70 02 00 04 6c 69 76 65
00 05 74 63 55 72 6c 02 00 17 72 74 6d 70 3a 2f
2f 31 30 2e 31 30 2e 31 30 2e 37 39 2f 6c 69 76
65 00 04 66 70 61 64 01 00 00 0c 63 61 70 61 62
69 6c 69 74 69 65 73 00 40 2e 00 00 00 00 00 00
00 0b 61 75 64 69 6f 43 6f 64 65 63 73 00 40 a8
ee 00 00 00 00 00 00 0b 76 69 64 65 6f 43 6f 64
bundle.js:366:5
.WN........ ...connect.?.... ......app...live ..tcUrl...rtmp:/ /10.10.10.79/liv e..fpad....capab ilities.@....... ..audioCodecs.@. ........videoCod bundle.js:366:5 c5 65 63 73 00 40 6f 80 00 00 00 00 00 00 0d 76 69 64 65 6f 46 75 6e 63 74 69 6f 6e 00 3f f0 00 00 00 00 00 00 00 00 09 bundle.js:366:5 .ecs.@o..... ...videoFunction .?.......... bundle.js:366:5 GOT MESSAGE: setWindowSize bundle.js:233:5 02 60 57 59 00 00 04 05 00 00 00 00 00 26 25 a0 bundle.js:366:5 .WY........
.&%. bundle.js:366:5
GOT MESSAGE: setPeerBw bundle.js:233:5
GOT MESSAGE: setChunkSize bundle.js:233:5
RangeError: Trying to access beyond buffer length bundle.js:3805:37
checkOffset http://10.10.10.47/Web-Rtmp/build/bundle.js:3805:37
readUInt8 http://10.10.10.47/Web-Rtmp/build/bundle.js:3841:19
amf0decObject http://10.10.10.47/Web-Rtmp/build/bundle.js:5854:14
amfXDecodeOne http://10.10.10.47/Web-Rtmp/build/bundle.js:6114:13
amf0DecodeOne http://10.10.10.47/Web-Rtmp/build/bundle.js:6123:13
decodeAMF0Cmd/< http://10.10.10.47/Web-Rtmp/build/bundle.js:6268:26
forEach self-hosted
decodeAMF0Cmd http://10.10.10.47/Web-Rtmp/build/bundle.js:6266:10
RtmpChunkMsgClass.prototype.rcvAmf0EncCmdMsg http://10.10.10.47/Web-Rtmp/build/bundle.js:4888:23
RtmpChunkClass.prototype.rtmpReadChunkMessagePCM/< http://10.10.10.47/Web-Rtmp/build/bundle.js:5284:22
QueueClass.prototype.tryRead http://10.10.10.47/Web-Rtmp/build/bundle.js:2768:14
writeBuf http://10.10.10.47/Web-Rtmp/build/bundle.js:2662:21
QueueClass/< http://10.10.10.47/Web-Rtmp/build/bundle.js:2667:46
EventEmitter.prototype.emit http://10.10.10.47/Web-Rtmp/build/bundle.js:7655:10
readableAddChunk http://10.10.10.47/Web-Rtmp/build/bundle.js:9313:12
Readable.prototype.push http://10.10.10.47/Web-Rtmp/build/bundle.js:9272:11
Socket.prototype._onMessage http://10.10.10.47/Web-Rtmp/build/bundle.js:6607:4
Socket/self._ws.onmessage

===========>
{"cmd":"_error","transId":1,"cmdObj":null,"info":{"level":"error","code":"NetConnection.Connect.Rejected","description":"[ Server.Reject ] : (defaultRoot, defaultVHost) : Application (test1) is not defined."}}

现在是连接拒绝

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.