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
I'm trying to bumble my way through to having a working babel7-based setup but there seems to be something wrong the moment i pull in "babel-plugin-inline-import-graphql-ast"
Here is my babel.config.js (this is now the babel7 method to specify a project-wide babel config, in lieu of .babelrc):
Matthews-MacBook-Pro:frontend matt$ yarn list @babel/node @babel/core babel-loader babel-plugin-inline-import-graphql-ast
yarn list v1.6.0
warning Filtering by arguments is deprecated. Please use the pattern option instead.
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ [email protected]
└─ [email protected]
✨ Done in 0.63s.
Error text:
Module build failed: Error: Configuration contains explicit test/include/exclude checks, but no filename was passed to Babel
at configFieldIsApplicable (/Users/matt/dev/partridge/frontend/node_modules/@babel/core/lib/config/config-chain.js:401:11)
at configIsApplicable (/Users/matt/dev/partridge/frontend/node_modules/@babel/core/lib/config/config-chain.js:396:41)
at forEach (/Users/matt/dev/partridge/frontend/node_modules/@babel/core/lib/config/config-chain.js:242:13)
at Array.forEach (<anonymous>)
at /Users/matt/dev/partridge/frontend/node_modules/@babel/core/lib/config/config-chain.js:239:42
at buildRootChain (/Users/matt/dev/partridge/frontend/node_modules/@babel/core/lib/config/config-chain.js:90:20)
at loadPrivatePartialConfig (/Users/matt/dev/partridge/frontend/node_modules/@babel/core/lib/config/partial.js:51:55)
at loadFullConfig (/Users/matt/dev/partridge/frontend/node_modules/@babel/core/lib/config/full.js:43:39)
at transformSync (/Users/matt/dev/partridge/frontend/node_modules/@babel/core/lib/transform-sync.js:15:38)
at buildVariableAST (/Users/matt/dev/partridge/frontend/node_modules/babel-plugin-inline-import-graphql-ast/build/index.js:87:58)
at /Users/matt/dev/partridge/frontend/node_modules/babel-plugin-inline-import-graphql-ast/build/index.js:72:26
at Array.map (<anonymous>)
at buildReplacements (/Users/matt/dev/partridge/frontend/node_modules/babel-plugin-inline-import-graphql-ast/build/index.js:65:31)
at PluginPass.exit (/Users/matt/dev/partridge/frontend/node_modules/babel-plugin-inline-import-graphql-ast/build/index.js:59:34)
at newFn (/Users/matt/dev/partridge/frontend/node_modules/@babel/core/node_modules/@babel/traverse/lib/visitors.js:237:21)
at NodePath._call (/Users/matt/dev/partridge/frontend/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/context.js:65:20)
I appreciate this seems to be specific to the "babel-plugin-inline-import-graphql-ast" plugin but am a little unclear as to whether plugin authors need to update to become "babel7 compatible" or whether i'm likelier doing something wrong here
The text was updated successfully, but these errors were encountered:
Hi there,
I'm trying to bumble my way through to having a working babel7-based setup but there seems to be something wrong the moment i pull in "babel-plugin-inline-import-graphql-ast"
Here is my
babel.config.js
(this is now the babel7 method to specify a project-wide babel config, in lieu of.babelrc
):Example usage of the graphql inlining:
Babel version:
Error text:
I appreciate this seems to be specific to the "babel-plugin-inline-import-graphql-ast" plugin but am a little unclear as to whether plugin authors need to update to become "babel7 compatible" or whether i'm likelier doing something wrong here
The text was updated successfully, but these errors were encountered: