when I deploy webassebly stuidio locally, i found errors in my webbrowser console which list below
Uncaught (in promise) TypeError: Cannot read property 'name' of null
at Function.compileFile (webpack-internal:///./src/service.ts:227)
at Gulpy.eval (eval at contextify (webpack-internal:///./src/utils/taskRunner.ts), :47:65)
at step (eval at contextify (webpack-internal:///./src/utils/taskRunner.ts), :34:23)
at Object.eval [as next] (eval at contextify (webpack-internal:///./src/utils/taskRunner.ts), :15:53)
at eval (eval at contextify (webpack-internal:///./src/utils/taskRunner.ts), :9:71)
at new Promise ()
at __awaiter (eval at contextify (webpack-internal:///./src/utils/taskRunner.ts), :5:12)
at Task.eval [as promiseMaker] (eval at contextify (webpack-internal:///./src/utils/taskRunner.ts), :43:41)
at TaskInstance.makePromise (webpack-internal:///./src/gulpy.ts:38)
at GulpySession.runInstance (webpack-internal:///./src/gulpy.ts:58)
I found that getFile function return null , its parameter is src/main.c with type string
After getImmediateChild called , the return file is null, path[0] was "src". In the getImmedidateChild function ,it just check wheater its children's name was equal to the src.
Actually its childrens file array didn't contain src which is a directory.
Question : some mistake in my descripstion ? Does newProject load src which is a directory as a child
const file = this.getImmediateChild(path[0]);
when I deploy webassebly stuidio locally, i found errors in my webbrowser console which list below Uncaught (in promise) TypeError: Cannot read property 'name' of null at Function.compileFile (webpack-internal:///./src/service.ts:227) at Gulpy.eval (eval at contextify (webpack-internal:///./src/utils/taskRunner.ts),:47:65)
at step (eval at contextify (webpack-internal:///./src/utils/taskRunner.ts), :34:23)
at Object.eval [as next] (eval at contextify (webpack-internal:///./src/utils/taskRunner.ts), :15:53)
at eval (eval at contextify (webpack-internal:///./src/utils/taskRunner.ts), :9:71)
at new Promise ()
at __awaiter (eval at contextify (webpack-internal:///./src/utils/taskRunner.ts), :5:12)
at Task.eval [as promiseMaker] (eval at contextify (webpack-internal:///./src/utils/taskRunner.ts), :43:41)
at TaskInstance.makePromise (webpack-internal:///./src/gulpy.ts:38)
at GulpySession.runInstance (webpack-internal:///./src/gulpy.ts:58)
I found that getFile function return null , its parameter is src/main.c with type string After getImmediateChild called , the return file is null, path[0] was "src". In the getImmedidateChild function ,it just check wheater its children's name was equal to the src. Actually its childrens file array didn't contain src which is a directory. Question : some mistake in my descripstion ? Does newProject load src which is a directory as a child
const file = this.getImmediateChild(path[0]);