Skip to content

Problem in Angular Tour of Heroes Tutorial Step 6 #44073

Closed
@songyang-dev

Description

@songyang-dev

🐞 Bug report

Command (mark with an x)

  • serve

Description

I'm following the tutorial on the website called Tour of Heroes (https://angular.io/tutorial/toh-pt6). There is a bug at step 6 when importing
import { InMemoryDataService } from './in-memory-data.service';

🔬 Minimal Reproduction

Follow the tutorial until you need to import ./in-memory-data.service.

🔥 Exception or Error



 Error: src/app/app.module.ts:9:37 - error TS2307: Cannot find module './in-memory-data.service' or its corresponding type declarations.

🌍 Your Environment




Angular CLI: 12.2.9
Node: 14.17.6
Package Manager: npm 6.14.15
OS: win32 x64

Angular: 12.2.9
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1202.9
@angular-devkit/build-angular   12.2.9
@angular-devkit/core            12.2.9
@angular-devkit/schematics      12.2.9
@schematics/angular             12.2.9
rxjs                            6.6.7
typescript                      4.3.5

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions