Fix GraphQL codegen on Document Model Editor story
Closed this issue · 0 comments
acaldas commented
Defining a state schema in the Document Model Editor story produces the following error:
GraphQLCompilerProfiler.js:192 Uncaught (in promise) TypeError: process.hrtime is not a function
at node_modules/@ardatan/relay-compiler/lib/core/GraphQLCompilerProfiler.js (GraphQLCompilerProfiler.js:192:22)
at __require2 (chunk-2LSFTFF7.js?v=6a1019eb:19:50)
at node_modules/@ardatan/relay-compiler/lib/core/CompilerContext.js (CompilerContext.js:13:16)
at __require2 (chunk-2LSFTFF7.js?v=6a1019eb:19:50)
at index.js:7:29
This is probably due to Storybook bundling the NodeJS version of the graphql dependencies.