Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

error TS2688: Cannot find type definition file for 'babel__core'. #51

Open

Description

@weaponhe
> babel-typescript-sample@0.7.1 build:types /Users/heweipeng/byted/TypeScript-Babel-Starter
> tsc --emitDeclarationOnly

error TS2688: Cannot find type definition file for 'babel__core'.

error TS2688: Cannot find type definition file for 'babel__template'.


Found 2 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! babel-typescript-sample@0.7.1 build:types: `tsc --emitDeclarationOnly`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the babel-typescript-sample@0.7.1 build:types script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/heweipeng/.npm/_logs/2020-01-16T07_29_50_627Z-debug.log
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Activity

  1. peterblazejewicz commented on Feb 19, 2020

    @peterblazejewicz

    weaponhe (@weaponhe) Is this one still a problem? It looks like problem with just types not being correctly resolved (for some reason)

  2. muescha commented on May 20, 2020

    @muescha

    someone else an idea? i have the same problem

  3. pedapudibhargav commented on May 23, 2020

    @pedapudibhargav

    I have the same issue. Any fix for this?

  4. leeweisberger commented on Jul 14, 2020

    @leeweisberger

    I fixed by installing the types that it said I was missing: npm i --save-dev @types/babel__core

  5. bisatech369 commented on Mar 16, 2021

    @bisatech369

    Thank you so much!

  6. vitaliyirtlach commented on Mar 24, 2021

    @vitaliyirtlach

    I fixed by installing the types that it said I was missing: npm i --save-dev @types/babel__core

    thanks, it helped me too ;)!

  7. bnabaei commented on Apr 14, 2021

    @bnabaei

    Worked for me too! Thanks!

  8. jmfantin2 commented on Apr 20, 2021

    @jmfantin2

    me 2, for babel__generator tho
    thanks a lot!

  9. wingon-niu commented on Nov 28, 2021

    @wingon-niu

    Thank you so much!

  10. SergeyMell commented on Jan 26, 2022

    @SergeyMell

    I had such an issue when I had all my dependencies installed via yarn and after that, I occasionally added a new one with npm. So I fixed it by just removing package-lock.json and reinstalling all the deps by yarn command. Possibly this could be helpful for somebody

  11. evgeniyp commented on Feb 21, 2022

    @evgeniyp

    In my case, it's caused by the node_modules directory which was accidentally created at the same level as my backend project folder.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions