evenchange4 / graphql.macro

Compile GraphQL AST at build-time with babel-plugin-macros.
MIT License
239 stars 21 forks source link

Usage with storybook #109

Open kkesley-shine opened 4 years ago

kkesley-shine commented 4 years ago

Hi, I'm currently trying to create a package and one of my component uses this library.

However, when I tried to use it with storybook, it gives me this error:

Module not found: Error: Can't resolve 'fs' in '/Users/kkesley/code/webapp/vo-components/node_modules/graphql.macro/es/utils'

I tried searching but the closest thing I can find is this solution which doesn't work for me..

Am I missing something?

haveamission commented 1 year ago

@kkesley-shine Did you ever find a solution?