-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Parcel build throws Unknown error #1752
Comments
Is this error reproducable? Not sure why this is happening?
|
The demo repository is here https://github.com/Jancat/parcel-vue-ts-demo. Because of the issue of |
@DeMoorJasper I'm getting the same error and found this when trying to figure out why. Also, I'm not using TypeScript at all. |
@andrewbanchich Unknown error can pretty much be everything but I'll look into it when I find the time |
This is a fairly strange error, for some reason it throws a string instead of an error somewhere. This is the real error message:
|
How can I see the "real" error message? I only get this when building Vue as well, but when I serve it for dev it is totally fine. I just finished porting all the code from Webpack to Parcel, so it would be helpful if I had a way to find out where this error is actually originating. |
I got it working. I think it was related to #1124 , since I eventually got it to display a real error message. |
@andrewbanchich I opened a PR that fixes this issue, like mentioned above. #1761 |
@DeMoorJasper Could you tell me how to fix the error that Cannot find source file? I had imported And it works fine on |
Probably best to report it to parcel-plugin-ts Sent with GitHawk |
🐛 bug report
I'm building a vue application with typescript. There is normal when running
parcel index.html
, but error was thrown inparcel build index.html
🎛 Configuration (.babelrc, package.json, cli command)
tsconfig.json
package.json
🤔 Expected Behavior
parcel build index.html
successfully outputdist
directory😯 Current Behavior
When execute
NODE_ENV=production parcel build index.html
andparcel build index.html
, the error was thrown:parcel build index.html
works normally. So is theNODE_ENV=production
makes the error?I debug the
parcel/src/workerfarm/Worker.js
Line 142 in 2e1ffc6
and log the
call
error info:💁 Possible Solution
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: