求助:因为太新手了,所以完全不知道怎么了,看图吧

尝试着写JS文件之后,发现报错了。然后game模块不见了,然后canvas一直读不出来

Error: Error: Cannot find module ‘game’ from ‘F:\Wow!RPG!\Programming\temp\scripts\assets\script’
at Readable. (D:\CocosCreator\resources\app.asar\editor\page\compile-worker.js:1:3632) at emitOne (events.js:77:13) at Readable.emit (events.js:169:7) at Labeled. (D:\CocosCreator\resources\app.asar\node_modules\read-only-stream\index.js:27:44) at emitOne (events.js:77:13) at Labeled.emit (events.js:169:7) at Labeled. (D:\CocosCreator\resources\app.asar\node_modules\stream-splicer\index.js:133:18) at emitOne (events.js:82:20) at Labeled.emit (events.js:169:7) at Deps. (D:\CocosCreator\resources\app.asar\node_modules\stream-splicer\index.js:133:18) at Object. (D:\CocosCreator\resources\app.asar\editor\core\compiler.js:1:627) at BrowserWindow. (D:\CocosCreator\resources\app.asar\editor\core\compiler.js:1:941) at BrowserWindow.g (events.js:260:16) at emitOne (events.js:82:20) at BrowserWindow.emit (events.js:169:7)

我自己找的原因了:
某个JS文件里调用了game模块,所以cc在加载的时候会去找那个文件,结果是没有的。错误代码改掉就好了