Hello,
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
This may be a duplicate of the following ticket.
However, If the documentation page linked in the issue above will not be kept up-to-date, this ticket should instead be used to consider removing the faulty documentation from the site and instead linking to the updated instructions. This would hopefully prevent others from the confusion.
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
@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:
@NgModule({ imports: [BrowserModule, ApolloModule, HttpClientModule], ...
Most helpful comment
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