Comments (4)
Thank you for raising this. To make it easier for me to try and reproduce the scenario, could you please also include your .graphqlrc.ts
file?
from shopify-api-js.
@paulomarg same error here, this is mine
import { ApiType, pluckConfig, preset } from "@shopify/api-codegen-preset";
export default {
// For syntax highlighting / auto-complete when writing operations
schema: "https://shopify.dev/admin-graphql-direct-proxy",
documents: ["./**/*.{js,ts,jsx,tsx}"],
projects: {
default: {
// For type extraction
schema: "https://shopify.dev/admin-graphql-direct-proxy",
documents: ["./**/*.{js,ts,jsx,tsx}"],
extensions: {
codegen: {
// Enables support for `#graphql` tags, as well as `/* GraphQL */`
pluckConfig,
generates: {
"./src/types/admin.schema.json": {
plugins: ["introspection"],
config: { minify: true },
},
"./src/types/admin.types.d.ts": {
plugins: ["typescript"],
},
"./src/types/admin.generated.d.ts": {
preset,
presetConfig: {
apiType: ApiType.Admin,
},
},
},
},
},
},
},
};```
from shopify-api-js.
@apalumbo thanks! I think you might be running into issues because of your documents
value, it seems to be looking at every document in the app, which would also include node_modules
and probably fail if any packages use a GraphQL tag.
I think you have 2 alternatives here:
- Add a glob pattern to ignore
node_modules
. I think this would look something like!**/node_modules
(untested). - Make your
documents
value more specific, like./app/**/*.{ts,tsx,js,jsx}
from shopify-api-js.
We are closing this issue because we did not hear back regarding additional details we needed to resolve this issue. If the issue persists and you are able to provide the missing clarification we need, feel free to respond and reopen this issue.
We appreciate your understanding as we try to manage our number of open issues.
from shopify-api-js.
Related Issues (20)
- Support pagination when searching customers with admin rest api HOT 1
- Unable to create customer with password using customerCreate on admin API node client HOT 1
- Expose RemixRestClient and GraphQLClient types for @shopify/shopify-app-remix HOT 1
- Managed Installation is broken when reinstalling from Admin's Settings. HOT 8
- Upgrade to new Shopify API version without upgrading `@shopify/shopify-api` package HOT 1
- Documentation pages return 404 HOT 1
- [API] Invalid API key or access token (unrecognized login or wrong password) Error HOT 3
- A new release of the Shopify API is due soon HOT 1
- Keep getting INTERNAL_SERVER_ERROR on the response of `productVariantsBulkCreate` query HOT 1
- NEW BUG: storeAvailability locations missing HOT 2
- Customer deletion error: Disconnected before secure TLS was established HOT 1
- shopify.session.getCurrentId() fails to read request headers from Next.js app router HOT 6
- Multiple Webhook Handlers Error
- Rest resource `Shop.all()` returns the complete response HOT 3
- A new release of the Shopify API occurred
- April 2024 API version HOT 4
- Recurring Application Charge currency being returned as weird object with each letter as a different value HOT 1
- ShopifyApp::RequireKnownShop not worked for Shopify API version 2024-04 HOT 1
- `shop/update` webhook not triggered when editing `marketing_sms_consent_enabled_at_checkout` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shopify-api-js.