Skip to content

馃摑 Documentation: read me file command not work聽#154

Open

Description

@mostafahamed15

Documentation Report Checklist

  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my request.
  • This is the appropriate issue form for the documentation issue I would like to report.

Expected

npm run tsc -- --project 01-ingredients --watch

it did not work

Actual

npm warn "./02-recipes" is being parsed as a normal command line argument.
npm warn Unknown cli config "--project". This will stop working in the next major version of npm.
npm warn Unknown cli config "--watch". This will stop working in the next major version of npm.

tsc
tsc ./02-recipes

error TS5112: tsconfig.json is present but will not be loaded if files are specified on commandline. Use '--ignoreConfig' to skip this error.

Additional Info

Otherwise, if I remove "npm run," it will work correctly and update tsconfig from "moduleResolution": "node" to "moduleResolution": "nodenext",

Activity

  1. changed the title [-]馃摑 Documentation: <short description of the request>[/-] [+]馃摑 Documentation: read me file command not work[/+] on Jul 30, 2026
  2. JoshuaKGoldberg commented on Aug 2, 2026

    @JoshuaKGoldberg
    Collaborator

    Hmm, this works fine for me when I run through the steps on https://www.learningtypescript.com/unions-and-literals/primitive-cooking. That's running from ~/repos/learning-typescript-projects/projects/unions-and-literals/primitive-cooking on my machine. Can you confirm which directory you're running the command from @mostafahamed15? Thanks for filing!

  3. removed their assignment
    on Aug 2, 2026
  4. mostafahamed15 commented on Aug 4, 2026

    @mostafahamed15
    Author

    @JoshuaKGoldberg Many thanks for your response but error still occur on my machine

    Image

    I solve the problem by changing the command to
    / tsc -- --project 01-ingredients --watch
    still did not understand why npm run did not run properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions