Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mohsen1 opened this issue Sep 19, 2018 · 0 comments

Comments

@mohsen1
Copy link

mohsen1 commented Sep 19, 2018

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant