Skip to content

Module '"@angular/core"' has no exported member 'Service' #69438

@Tina2010

Description

@Tina2010

Describe the problem that you experienced

In the tutorial https://angular.dev/tutorials/learn-angular/19-creating-an-injectable-service it is mentioned, and shown, that "Service" from '@angular/core' should be used, but Angular doesn't seem to find it.

Enter the URL of the topic with the problem

No response

Describe what you were looking for in the documentation

No response

Describe the actions that led you to experience the problem

Open or reload the tutorial on how to create an injectable service.

Describe what you want to experience that would fix the problem

No response

Add a screenshot if that helps illustrate the problem

Image

If this problem caused an exception or error, please paste it here

Application bundle generation failed. [0.442 seconds] - 2026-06-19T09:19:17.161Z

✘ [ERROR] TS2305: Module '"@angular/core"' has no exported member 'Service'. [plugin angular-compiler]

    src/app/car.service.ts:1:8:
      1 │ import {Service} from '@angular/core';
        ╵         ~~~~~~~

If the problem is browser-specific, please specify the device, OS, browser, and version


Provide any additional information here in as much as detail as you can


Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsRelated to the documentationgemini-triagedLabel noting that an issue has been triaged by gemini

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions