Skip to content
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

Compilation error #8

Open
maxaggedon opened this issue Oct 6, 2023 · 1 comment
Open

Compilation error #8

maxaggedon opened this issue Oct 6, 2023 · 1 comment

Comments

@maxaggedon
Copy link

Just trying this out as it seems to be great to test fragments in storybook, but it keeps crashing with this error :

ModuleParseError: Module parse failed: Unexpected token (56:5)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| } = RelayConcreteNode;
| 
> type ValueResolver = (
|   typeName: string | null | undefined,
|   context: MockResolverContext,
...

Storybook install is pretty recent, component written in TS

@richardguerre
Copy link
Owner

Hi @maxaggedon, I'm not actively maintaining (nor using) the package anymore. It was implemented when Relay v11 and Storybook v6.3 were out, and both of these have changed drastically in their newest versions.

My recommendation would be to fork the project, and try to upgrade packages like the relay-test-utils package (used in this file) to match your version of Relay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants