Cannot import ApolloModule according to instructions
See original GitHub issueHello,
I was following the instructions under the ‘Installation without Angular Schematics’ section of this documentation: https://www.apollographql.com/docs/angular/basics/setup/
After importing ApolloModule according to the instruction, I had the following:
import { ApolloModule, APOLLO_OPTIONS } from "apollo-angular";
However, when I save the file I get a compiler error:
error TS2305: Module '"../../../../node_modules/apollo-angular/ngApollo"' has no exported member 'ApolloModule'.
2 import { ApolloModule, APOLLO_OPTIONS } from 'apollo-angular';
Intended outcome: I expected following the instructions exactly would not generate an error. If there is a different way to import the module for these instructions to work, it should be included in the instructions.
Actual outcome: The app fails to compile
How to reproduce the issue: Follow the instructions on the page listed above to observe that you cannot import the required module.
Versions This affects
- apollo-client “^2.6.10”
- apollo-angular “^2.0.4”
- Angular 10
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top GitHub Comments
@fetis The v2 documentation you linked still uses ApolloModule once. I’ve followed the page and had the same issue.
It’s not mentioned in the text, but still used in a code block:
Hello @krejko Please use https://apollo-angular.com/docs/get-started for documentation.
See https://github.com/kamilkisiela/apollo-angular/issues/1587 for more details