Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unlink(~/weather.com/programmatic-types.graphql): No such file or directory #1407

Closed
haxifang-aircos opened this issue Jun 5, 2020 · 12 comments
Labels
bug An error within Lighthouse

Comments

@haxifang-aircos
Copy link

我按照官方文档引入lighthourse后,执行命令
php artisan lighthouse:ide-helper
抛出了标题那样的错误,请问有人遇到过这个问题吗?

@spawnia
Copy link
Collaborator

spawnia commented Jun 5, 2020

Can you post your question in English please?

@haxifang-aircos
Copy link
Author

Can you post your question in English please?

OK.My English is not good.I try to init lighthourse in owner project.
Threw an error
截屏2020-06-05下午4 22 59

@lorado
Copy link
Collaborator

lorado commented Jun 5, 2020

Google translater says:

After introducing lighthourse according to the official document, execute the command
php artisan lighthouse:ide-helper
An error like the title is thrown. Has anyone encountered this problem?

I guess we have to check, if file exists or not in IdeHelperComman line 171

@lorado
Copy link
Collaborator

lorado commented Jun 5, 2020

@spawnia wanna fix? :D

unlink($filePath);

to this one

if (file_exists($filePath)) {
    unlink($filePath);
}

@haxifang-aircos
Copy link
Author

@spawnia wanna fix? :D

unlink($filePath);

to this one

if (file_exists($filePath)) {
    unlink($filePath);
}

hi, I found no such file. Where did this file come from?

image

By the way, I found that when I successfully introduced it before, there was no 171 lines of code.

@lorado
Copy link
Collaborator

lorado commented Jun 5, 2020

hi, I found no such file. Where did this file come from?

this file is actually generated by the command you try to run (lighthouse:ide-helper). And if you have no programmatically registered types, the command tries to remove that helper file, which don't exist at all.

@haxifang-aircos
Copy link
Author

hi, I found no such file. Where did this file come from?

this file is actually generated by the command you try to run (lighthouse:ide-helper). And if you have no programmatically registered types, the command tries to remove that helper file, which don't exist at all.

thank you very much! :)

@spawnia
Copy link
Collaborator

spawnia commented Jun 5, 2020

Reopening because we can fix this.

@spawnia spawnia reopened this Jun 5, 2020
@spawnia spawnia added the bug An error within Lighthouse label Jun 5, 2020
@haxifang-aircos
Copy link
Author

Reopening because we can fix this.

ok, please help me : )

@haxifang-aircos
Copy link
Author

Reopening because we can fix this.

Looking forward to your reply

spawnia added a commit that referenced this issue Jun 5, 2020
@spawnia
Copy link
Collaborator

spawnia commented Jun 5, 2020

@spawnia spawnia closed this as completed Jun 5, 2020
@haxifang-aircos
Copy link
Author

Fixed as of https://github.com/nuwave/lighthouse/releases/tag/v4.14.1

thank you very much! 大拇指

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error within Lighthouse
Projects
None yet
Development

No branches or pull requests

3 participants