Skip to content

Cannot find module './src/transform-inline/visitor-utils' or its corresponding type declarations #93

Closed
@shhac

Description

@shhac

Upgrading from 0.17.1 to 0.18.0/0.18.1 can no longer build my project under ttsc

  • Issue seems to be around visitor-utils
  • To reproduce you'll need to delete your node_modules and re-install dependencies e.g. by running npm ci
  • Using Node 14.15.3
    "build": "ttsc",
...
    "ttypescript": "^1.5.12",
    "typescript": "^4.2.3"
Found '/Users/paul/Projects/Api2/.nvmrc' with version <14>
Now using node v14.15.3 (npm v6.14.10)

> api-2@1.0.0 build /Users/paul/Projects/Api2
> ttsc

node_modules/typescript-is/index.d.ts:1:35 - error TS2307: Cannot find module './src/transform-inline/visitor-utils' or its corresponding type declarations.

1 import {TemplateLiteralPair} from './src/transform-inline/visitor-utils';
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! api-2@1.0.0 build: `ttsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the api-2@1.0.0 build 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/paul/.npm/_logs/2021-03-10T14_29_34_563Z-debug.log

There isn't a log identifying which file specifically typescript-is doesn't like from within my project 😞

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions