Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

getFile function return null #419

Open
SunnyPirate opened this issue May 28, 2019 · 0 comments
Open

getFile function return null #419

SunnyPirate opened this issue May 28, 2019 · 0 comments

Comments

@SunnyPirate
Copy link

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]);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant