question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom plugin script can't be found

See original GitHub issue

Describe the bug I can’t use a custom plugin; simply followed the instructions here: https://graphql-code-generator.com/docs/custom-codegen/write-your-plugin

See repo in “To Reproduce”

[11:40:07] Parse configuration [started]
[11:40:07] Parse configuration [completed]
[11:40:07] Load schema [started]
[11:40:07] Load schema [completed]
[11:40:07] Generate outputs [started]
[11:40:07] Generate ./src/types.d.ts [started]
[11:40:07] Generate ./src/test-plugin-types.d.ts [started]
[11:40:07] Generate [started]
[11:40:07] Generate [started]
[11:40:07] Generate [failed]
[11:40:07] → Unable to find template plugin matching test-plugin.js
[11:40:08] Generate ./src/test-plugin-types.d.ts [failed]
[11:40:08] → Unable to find template plugin matching test-plugin.js
Something went wrong
[11:40:08] Generate [completed]
[11:40:08] Generate ./src/types.d.ts [completed]
[11:40:08] Generate outputs [failed]

To Reproduce Could reproduce it here: https://github.com/kroeder/gql-gen-custom-plugin-issue-repo Anything I got totally wrong?

It would help if the error message would show a full path instead just the filename

Expected behavior Script in my plugin would be executed

Environment:

  • OS: Windows 10
  • Codegen: ^0.14.0
  • Node: ^10.12.10

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dotansimhacommented, Nov 24, 2018

@kroeder We recently changed the name of the enums values to math all other naming conventions.

1reaction
kamilkisielacommented, Nov 23, 2018

#915 should fix it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot apply an external plugin in a gradle init script (github ...
I get an error like so: Failed to notify action. > Plugin with id 'artifactory' not found. But when I include the contents...
Read more >
Can't add script component... - Unity Forum
Because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name...
Read more >
Using custom gradle plugin, cant find class? - Old Forum
I am trying to write a custom gradle plugin that provides ssh/scp functionality by wrapping the AntBuilder.sshexec and AntBuilder.scp in gradle tasks since ......
Read more >
Writing Custom Gradle Plugins - Baeldung
A quick and practical example of writing a custom Gradle plugin. ... however, our plugin won't be visible outside of the build script....
Read more >
Failing to Load Custom Plugins in Nessus Security Center 5.4
Why the Security Center cannot see/load my script but will copy it to the CustomNasl directory? Why I cannot find the new Plugin?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found