-
Notifications
You must be signed in to change notification settings - Fork 70
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
Exported variable 'fooQuery' has or is using name 'typenameSymbol' from external module but cannot be named #1231
Comments
This is probably related to some |
Ours looks something like this (some pieces removed that didn't seem relevant, like paths and plugins). {
"include": [],
"files": [],
"exclude": [
"**/jest.*",
"**/node_modules/**/*",
"**/dist/**/*",
"**/types/**/*",
"**/*.spec.ts",
"**/*.spec.tsx"
],
"compilerOptions": {
"noErrorTruncation": true,
"target": "esnext",
"module": "commonjs",
"moduleResolution": "node",
"jsx": "react-jsx",
"lib": ["esnext", "dom", "dom.iterable"],
"types": ["node"],
"typeRoots": ["node_modules/@types"],
"baseUrl": ".",
"rootDir": ".",
"composite": true,
"strict": true,
"allowJs": true,
"checkJs": false,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"importHelpers": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"noEmitHelpers": true,
"noImplicitAny": true,
"noImplicitReturns": false,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"preserveConstEnums": true,
"removeComments": false,
"resolveJsonModule": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"strictNullChecks": true,
"useUnknownInCatchVariables": false,
"experimentalDecorators": true
}
}
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code
I'm trying to define a function that generates a query, such as:
This previously seemed to work just fine with
edgedb
version 1.5.3, but breaks after updating to 2.0.1. I believe this PR is the culprit, as it adds the mentionedtypenameSymbol
stuff.The error is as follows:
(where packages/gel/src/edgeql is the codegen folder from
edgedb generate edgeql-js
).The issue appears to pop up specifically when using the nested subquery for
documents
(or any subquery like that) - the error disappears after removing that field.Schema
Too big to list here.
Generated EdgeQL
N/A
Error or desired behavior
Versions (please complete the following information):
gel-js
version: 2.0.1@gel/generate
version: 0.6.2The text was updated successfully, but these errors were encountered: