-
-
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
[bug] failed to parse "this" in TypeScript's type #8703
Comments
Does it also still fail with Parcel 2.8.2? |
but TypeScript in VS Code told me nothing wrong. |
It's working for me: https://github.com/mischnic/parcel-issue-8703 |
Could you test a more complex case? such as the context I shown above: |
(And this is exactly the reason why I wanted you to prepare some isolated reproduction...) |
@mischnic look here, it's in a sub package, the permanent link directs to the error lines. |
|
@mischnic To replace the class name with Use this branch: https://github.com/idea2app/MobX-RESTful/tree/update-bundler |
Any update? |
|
@mischnic This bug disappears with the latest |
Unfortunately, this error comes out with the same verisons... The source code is here: https://github.com/idea2app/MobX-RESTful/pull/16/files#diff-780bc523b57f373918475f4b3d1d120f938678b33c03bf79ce4f7b20b7085254 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
🎛 Configuration
package.json
tsconfig.json
🤔 Expected Behavior
Compile TypeScript source code as shown below successfully:
😯 Current Behavior
💁 Possible Solution
If I replace
this
with the class, this error disappeared:🔦 Context
Real world code:
idea2app/MobX-RESTful@0370678#diff-780bc523b57f373918475f4b3d1d120f938678b33c03bf79ce4f7b20b7085254R63-R69
🌍 Your Environment
The text was updated successfully, but these errors were encountered: