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

Throwing errors #38

Open
samdenty opened this issue May 29, 2018 · 2 comments
Open

Throwing errors #38

samdenty opened this issue May 29, 2018 · 2 comments

Comments

@samdenty
Copy link

samdenty commented May 29, 2018

After installing this package and starting parcel, it throws errors about missing files. These files definitely exist
Typescript version: 2.8.3 / 3.0.0

(node:27724) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Error: Error: Could not find file: 'D:\Data\Drive\Github\widgetbot2\packages\crate\src\index.tsx'.
    at getValidSourceFile (D:\Data\Drive\Github\widgetbot2\packages\crate\node_modules\typescript\lib\typescript.js:107364:23)
    at Object.getSemanticDiagnostics (D:\Data\Drive\Github\widgetbot2\packages\crate\node_modules\typescript\lib\typescript.js:107560:36)
    at LanguageService.check (D:\Data\Drive\Github\widgetbot2\packages\crate\node_modules\parcel-plugin-typescript\build\backend\service\index.js:15:24)
    at Object.<anonymous> (D:\Data\Drive\Github\widgetbot2\packages\crate\node_modules\parcel-plugin-typescript\build\backend\worker\launcher.js:34:28)
    at Generator.next (<anonymous>)
    at fulfilled (D:\Data\Drive\Github\widgetbot2\packages\crate\node_modules\tslib\tslib.js:104:62)
    at <anonymous>
    at TypeScriptWorker.<anonymous> (D:\Data\Drive\Github\widgetbot2\packages\crate\node_modules\parcel-plugin-typescript\build\backend\ipc\worker\index.js:27:19)
    at Generator.next (<anonymous>)
    at fulfilled (D:\Data\Drive\Github\widgetbot2\packages\crate\node_modules\tslib\tslib.js:104:62)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
@samdenty
Copy link
Author

samdenty commented May 29, 2018

This seems to be because the files weren't included in the paths, is this the intended behaviour? It worked in parcel before adding this plugin.

If it is, possibly a friendlier error message?

@fathyb
Copy link
Owner

fathyb commented May 30, 2018

It works with Parcel because it doesn't do any type-checking (so it doesn't need it). It is kinda intended but the error message could be way better. Feel free to create a PR

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

2 participants