Skip to content

Instantly share code, notes, and snippets.

@bloodf
Created March 3, 2023 02:10
Show Gist options
  • Save bloodf/221768274abd871c1d52ee5a79637180 to your computer and use it in GitHub Desktop.
Save bloodf/221768274abd871c1d52ee5a79637180 to your computer and use it in GitHub Desktop.
Compiling international-account-ext v1.0.0 (/Users/heitor/Developer/github.com/ernesta-tech/shopify-apps/extensions/custom-size)
error: Failed to generate GraphQLQuery impl: Could not find file with path: /Users/heitor/Developer/github.com/ernesta-tech/shopify-apps/extensions/custom-size/./schema.graphql
Hint: file paths in the GraphQLQuery attribute are relative to the project root (location of the Cargo.toml). Example: query_path = "src/my_query.graphql".
--> src/main.rs:7:1
|
7 | / generate_types!(
8 | | query_path = "./input.graphql",
9 | | schema_path = "./schema.graphql"
10 | | );
| |_^
|
= note: this error originates in the macro `generate_types` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0433]: failed to resolve: use of undeclared crate or module `input`
--> src/main.rs:14:20
|
14 | fn function(input: input::ResponseData) -> Result<output::FunctionResult> {
| ^^^^^ use of undeclared crate or module `input`
error[E0433]: failed to resolve: use of undeclared crate or module `output`
--> src/main.rs:14:51
|
14 | fn function(input: input::ResponseData) -> Result<output::FunctionResult> {
| ^^^^^^ use of undeclared crate or module `output`
error[E0433]: failed to resolve: use of undeclared crate or module `output`
--> src/main.rs:15:23
|
15 | let no_discount = output::FunctionResult {
| ^^^^^^ use of undeclared crate or module `output`
error[E0433]: failed to resolve: use of undeclared crate or module `output`
--> src/main.rs:17:40
|
17 | discount_application_strategy: output::DiscountApplicationStrategy::FIRST,
| ^^^^^^ use of undeclared crate or module `output`
error[E0433]: failed to resolve: use of undeclared crate or module `input`
--> src/main.rs:27:13
|
27 | input::InputCartLinesMerchandise::ProductVariant(variant) => Some(variant),
| ^^^^^ use of undeclared crate or module `input`
error[E0433]: failed to resolve: use of undeclared crate or module `input`
--> src/main.rs:28:13
|
28 | input::InputCartLinesMerchandise::CustomProduct => None,
| ^^^^^ use of undeclared crate or module `input`
error[E0433]: failed to resolve: use of undeclared crate or module `output`
--> src/main.rs:31:24
|
31 | .map(|variant| output::Target {
| ^^^^^^ use of undeclared crate or module `output`
error[E0433]: failed to resolve: use of undeclared crate or module `output`
--> src/main.rs:32:35
|
32 | product_variant: Some(output::ProductVariantTarget {
| ^^^^^^ use of undeclared crate or module `output`
error[E0433]: failed to resolve: use of undeclared crate or module `output`
--> src/main.rs:37:24
|
37 | .collect::<Vec<output::Target>>();
| ^^^^^^ use of undeclared crate or module `output`
error[E0433]: failed to resolve: use of undeclared crate or module `output`
--> src/main.rs:46:8
|
46 | Ok(output::FunctionResult {
| ^^^^^^ use of undeclared crate or module `output`
error[E0433]: failed to resolve: use of undeclared crate or module `output`
--> src/main.rs:47:25
|
47 | discounts: vec![output::Discount {
| ^^^^^^ use of undeclared crate or module `output`
error[E0433]: failed to resolve: use of undeclared crate or module `output`
--> src/main.rs:52:20
|
52 | value: output::Value {
| ^^^^^^ use of undeclared crate or module `output`
error[E0433]: failed to resolve: use of undeclared crate or module `output`
--> src/main.rs:54:34
|
54 | percentage: Some(output::Percentage {
| ^^^^^^ use of undeclared crate or module `output`
error[E0433]: failed to resolve: use of undeclared crate or module `output`
--> src/main.rs:59:40
|
59 | discount_application_strategy: output::DiscountApplicationStrategy::FIRST,
| ^^^^^^ use of undeclared crate or module `output`
warning: unused import: `Serialize`
--> src/main.rs:4:13
|
4 | use serde::{Serialize};
| ^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
For more information about this error, try `rustc --explain E0433`.
warning: `international-account-ext` (bin "international-account-ext") generated 1 warning
error: could not compile `international-account-ext` due to 15 previous errors; 1 warning emitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment