You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the nice tool! When I run the sample schema, An exception is being thrown in the visitor that handles the AST. I tried to investigate, but I couldn't isolate if it was a setup problem or if it was originally not working. If you know anything about it, please let me know.
Error is as follows:
$ npx fireschema schema.ts
For some reason the top parent was not a source file.
$ ./node_modules/fireschema/dist/bin/cli.js schema.ts
/home/katsuya/fireschema_test/node_modules/ts-morph/dist/ts-morph.js:19177
throw new common.errors.NotImplementedError("For some reason the top parent was not a source file.");
^
NotImplementedError: For some reason the top parent was not a source file.
at getSourceFileFromNode (/home/katsuya/fireschema_test/node_modules/ts-morph/dist/ts-morph.js:19177:19)
at getSourceFileNode (/home/katsuya/fireschema_test/node_modules/ts-morph/dist/ts-morph.js:19166:76)
at Object.createWrappedNode (/home/katsuya/fireschema_test/node_modules/ts-morph/dist/ts-morph.js:19163:76)
at visitNode (/home/katsuya/fireschema_test/node_modules/fireschema/dist/_transformer/main.js:65:35)
at visitNodeAndChildren (/home/katsuya/fireschema_test/node_modules/fireschema/dist/_transformer/main.js:36:57)
at /home/katsuya/fireschema_test/node_modules/fireschema/dist/_transformer/main.js:36:98
at visitNode (/home/katsuya/fireschema_test/node_modules/typescript/lib/typescript.js:85158:23)
at Object.visitEachChild (/home/katsuya/fireschema_test/node_modules/typescript/lib/typescript.js:85538:59)
at visitNodeAndChildren (/home/katsuya/fireschema_test/node_modules/fireschema/dist/_transformer/main.js:36:42)
at /home/katsuya/fireschema_test/node_modules/fireschema/dist/_transformer/main.js:36:98
[1] 3497853 exit 1 ./node_modules/fireschema/dist/bin/cli.js schema.ts
I tried changing TypeScript version to 4.2, and it worked fine.
Compiling with custom transformer often causes errors due to version compatibility between typescript and ts-morph, so we will not use custom transformer in v5 or later.
Thanks for the nice tool! When I run the sample schema, An exception is being thrown in the visitor that handles the AST. I tried to investigate, but I couldn't isolate if it was a setup problem or if it was originally not working. If you know anything about it, please let me know.
Error is as follows:
It occurs in the following steps:
The sample schema is as follows:
The text was updated successfully, but these errors were encountered: