error - ./queries/products.gql 1:6
Module parse failed: Unexpected token (1:6)
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
> query {
| allProducts {
| id
I am trying to add "graphql-tag" to the webpack loaders, but the webapck function in the nextjs config is not being called.
Here's my
next.config.js
:The missing loader error is still being thrown: