You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught ReferenceError: _brand_check_repro is not defined
at <instance_members_initializer> (repro.ts:2:9)
at new Repro (repro.ts:6:3)
at <anonymous>:1:1
Uncaught ReferenceError: _brand_check_repro is not defined
at <instance_members_initializer> (repro2.js:3:9)
at new Repro (repro2.js:5:3)
at <anonymous>:1:1
💁 Possible Solution
declare the variable before the class instead of shoving it into some random arrow function below the class
this code looks like part of SWC but I don't know how to identify what parcel is doing in order to break it
🔦 Context
N/A
💻 Code Sample
above
🌍 Your Environment
Software
Version(s)
Parcel
2.12.0
Node
17.1.0
npm/Yarn
Yarn 4.2.2
Operating System
Ubuntu 22.04
The text was updated successfully, but these errors were encountered:
🐛 bug report
if you use
#field in Class
in a JavaScript or TypeScript file, it'll generate incorrect code🎛 Configuration (.babelrc, package.json, cli command)
target:
parcelrc:
🤔 Expected Behavior
no error
😯 Current Behavior
this typescript code
generates this javascript code (during HMR)
trying to construct the class now throws:
and even this javascript code
generates this code during HMR
trying to construct that class also throws:
💁 Possible Solution
declare the variable before the class instead of shoving it into some random arrow function below the class
this code looks like part of SWC but I don't know how to identify what parcel is doing in order to break it
🔦 Context
N/A
💻 Code Sample
above
🌍 Your Environment
The text was updated successfully, but these errors were encountered: