Skip to content

when typeRoots is configured in tsconfig "Cannot find source file" error is thrown  #57

Description

@mohsen1

Bug Repo

https://github.com/mohsen1/parcel-ts-type-roots-

Error when running parcel:


> parcel-ts-type-roots@1.0.0 test /Users/mohsen_nabiloo-azimi/Desktop/parcel-ts-type-roots
> parcel build index.html

🚨  Error: Error: Error: Cannot find source file "/Users/mohsen_nabiloo-azimi/Desktop/parcel-ts-type-roots/index.ts"
    at TypeScriptCompiler.compile (/Users/mohsen_nabiloo-azimi/Desktop/parcel-ts-type-roots/node_modules/parcel-plugin-typescript/build/backend/compiler/tsc.js:24:19)
    at Object.<anonymous> (/Users/mohsen_nabiloo-azimi/Desktop/parcel-ts-type-roots/node_modules/parcel-plugin-typescript/build/backend/worker/launcher.js:28:29)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/mohsen_nabiloo-azimi/Desktop/parcel-ts-type-roots/node_modules/tslib/tslib.js:104:62)
    at <anonymous>
    at TypeScriptWorker.<anonymous> (/Users/mohsen_nabiloo-azimi/Desktop/parcel-ts-type-roots/node_modules/parcel-plugin-typescript/build/backend/ipc/worker/index.js:27:19)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/mohsen_nabiloo-azimi/Desktop/parcel-ts-type-roots/node_modules/tslib/tslib.js:104:62)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
    at IncomingMessage.res.setEncoding.on (/Users/mohsen_nabiloo-azimi/Desktop/parcel-ts-type-roots/node_modules/parcel-plugin-typescript/build/backend/ipc/client.js:31:32)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1056:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
npm ERR! Test failed.  See above for more details.
 ~/D/parcel-ts-type-roots                                                                     3612ms  Wed Sep 19 13:58:37 2018

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions