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

Custom configs are not supported #683

Closed
wasd171 opened this issue Nov 11, 2018 · 1 comment
Closed

Custom configs are not supported #683

wasd171 opened this issue Nov 11, 2018 · 1 comment
Assignees

Comments

@wasd171
Copy link

wasd171 commented Nov 11, 2018

Hi,

I have the following apollo.config.app.js:

module.exports = {
	client: {
		service: {
			name: 'service-app',
			localSchemaFile: './src/schema.graphql'
		},
		includes: ['./src/fragments/app/*.ts']
	}
}

When named apollo.config.js it works, but using

apollo client:codegen src/generated/types/app --target=typescript --outputFlat --config=apollo.config.app.js

fails with

Error: No provider was created for config
@Xample
Copy link

Xample commented Mar 22, 2019

Perhaps related to the fact --outputFlat requires a path
--outputFlat=some/path/queries.ts

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

3 participants