Closed elcreator closed 7 months ago
I'm submitting a ... (check one with "x")
Current behavior:
error: Error transforming method: restart error: Cannot read property 'kind' of undefined info: transformClass: Diagnostic {"durationMs":5} node_modules\typescript\lib\typescript.js:83925 return !!(node.transformFlags & 2048 / ContainsTypeScriptClassSyntax /); ^ TypeError: Cannot read property 'transformFlags' of undefined
Expected behavior:
successful build
Steps to reproduce:
npm i npm run build
tested with different nodejs versions from 14 to 20
Related code:
PS C:\projects\awesome-cordova-plugins> npm run build > awesome-cordova-plugins@6.4.0 prebuild C:\projects\awesome-cordova-plugins > rimraf -rf dist > awesome-cordova-plugins@6.4.0 build C:\projects\awesome-cordova-plugins > npm run build:core && npm run build:esm && npm run build:ngx && npm run build:es5 > awesome-cordova-plugins@6.4.0 build:core C:\projects\awesome-cordova-plugins > tsc -p tsconfig.core.json > awesome-cordova-plugins@6.4.0 build:esm C:\projects\awesome-cordova-plugins > ts-node -P scripts/tsconfig.json scripts/tasks/build-esm info: transformClass: AbbyyRTR {"durationMs":2} info: transformClass: ActionSheet {"durationMs":1} info: transformClass: AdjustEvent {"durationMs":0} info: transformClass: AdjustConfig {"durationMs":0} info: transformClass: AdjustAppStoreSubscription {"durationMs":0} info: transformClass: AdjustPlayStoreSubscription {"durationMs":0} info: transformClass: AdjustThirdPartySharing {"durationMs":0} info: transformClass: AdjustAdRevenue {"durationMs":0} info: transformClass: Adjust {"durationMs":1} info: transformClass: Admob {"durationMs":1} info: transformClass: Banner {"durationMs":0} info: transformClass: Interstitial {"durationMs":1} info: transformClass: RewardVideo {"durationMs":0} info: transformClass: AdMob {"durationMs":0} info: transformClass: AdMobPro {"durationMs":1} info: transformClass: AdvancedImagePicker {"durationMs":0} info: transformClass: AES256 {"durationMs":0} info: transformClass: AllInOneSDK {"durationMs":0} info: transformClass: AnalyticsFirebase {"durationMs":0} info: transformClass: AndroidExoplayer {"durationMs":0} info: transformClass: AndroidFullScreen {"durationMs":1} info: transformClass: AndroidNotch {"durationMs":0} info: transformClass: AndroidPermissions {"durationMs":0} info: transformClass: Anyline {"durationMs":0} info: transformClass: AppAvailability {"durationMs":0} info: transformClass: AppCenterAnalytics {"durationMs":2} info: transformClass: AppCenterCrashes {"durationMs":1} info: transformClass: LowMemory {"durationMs":0} info: transformClass: AppCenterPush {"durationMs":0} info: transformClass: AppCenter {"durationMs":0} info: transformClass: AppPreferences {"durationMs":0} info: transformClass: AppRate {"durationMs":0} info: transformClass: AppReview {"durationMs":0} info: transformClass: AppVersion {"durationMs":0} info: transformClass: AppleWallet {"durationMs":0} info: transformClass: Applovin {"durationMs":2} info: transformClass: ApproovHttp {"durationMs":0} info: transformClass: Appsflyer {"durationMs":0} info: transformClass: BackgroundFetch {"durationMs":0} info: transformClass: BackgroundGeolocation {"durationMs":1} info: transformClass: BackgroundMode {"durationMs":1} info: transformClass: FileTransferManager {"durationMs":0} info: transformClass: BackgroundUpload {"durationMs":0} info: transformClass: Badge {"durationMs":0} info: transformClass: BarcodeScanner {"durationMs":0} info: transformClass: BatteryStatus {"durationMs":0} info: transformClass: BioCatch {"durationMs":0} info: transformClass: BiometricWrapper {"durationMs":0} info: transformClass: BLE {"durationMs":1} info: transformClass: BlinkId {"durationMs":3} info: transformClass: BluetoothClassicSerialPort {"durationMs":1} info: transformClass: BluetoothLE {"durationMs":2} info: transformClass: BluetoothSerial {"durationMs":1} info: transformClass: BranchIo {"durationMs":0} info: transformClass: Brightness {"durationMs":0} info: transformClass: Broadcaster {"durationMs":1} info: transformClass: BrowserTab {"durationMs":0} info: transformClass: BuildInfo {"durationMs":1} info: transformClass: Calendar {"durationMs":0} info: transformClass: CallDirectory {"durationMs":1} info: transformClass: CallNumber {"durationMs":0} info: transformClass: Camera {"durationMs":1} info: transformClass: CameraPreview {"durationMs":1} info: transformClass: CFSession {"durationMs":0} info: transformClass: CFPaymentComponentBuilder {"durationMs":0} info: transformClass: CFThemeBuilder {"durationMs":0} info: transformClass: CFWebThemeBuilder {"durationMs":0} info: transformClass: CFDropCheckoutPayment {"durationMs":0} info: transformClass: CFWebCheckoutPayment {"durationMs":0} info: transformClass: CFPaymentGateway {"durationMs":0} info: transformClass: Checkout {"durationMs":0} info: transformClass: Chooser {"durationMs":0} info: transformClass: Chooser {"durationMs":0} info: transformClass: CleverTap {"durationMs":2} info: transformClass: Clipboard {"durationMs":0} info: transformClass: CloudSettings {"durationMs":0} info: transformClass: CodePush {"durationMs":0} info: transformClass: CropPluginPrivacy {"durationMs":1} info: transformClass: CustomUISDK {"durationMs":0} info: transformClass: Deeplinks {"durationMs":0} info: transformClass: Device {"durationMs":0} info: transformClass: DeviceAccounts {"durationMs":0} info: transformClass: DeviceMotion {"durationMs":0} info: transformClass: DeviceOrientation {"durationMs":0} info: transformClass: DfuUpdate {"durationMs":0} error: Error transforming method: restart error: Cannot read property 'kind' of undefined info: transformClass: Diagnostic {"durationMs":5} C:\projects\awesome-cordova-plugins\node_modules\typescript\lib\typescript.js:83925 return !!(node.transformFlags & 2048 /* ContainsTypeScriptClassSyntax */); ^ TypeError: Cannot read property 'transformFlags' of undefined at hasTypeScriptClassSyntax (C:\projects\awesome-cordova-plugins\node_modules\typescript\lib\typescript.js:83925:28) at Object.some (C:\projects\awesome-cordova-plugins\node_modules\typescript\lib\typescript.js:943:25) at isClassLikeDeclarationWithTypeScriptSyntax (C:\projects\awesome-cordova-plugins\node_modules\typescript\lib\typescript.js:83931:23) at visitClassDeclaration (C:\projects\awesome-cordova-plugins\node_modules\typescript\lib\typescript.js:83934:18) at visitTypeScript (C:\projects\awesome-cordova-plugins\node_modules\typescript\lib\typescript.js:83789:28) at visitorWorker (C:\projects\awesome-cordova-plugins\node_modules\typescript\lib\typescript.js:83580:24) at sourceElementVisitorWorker (C:\projects\awesome-cordova-plugins\node_modules\typescript\lib\typescript.js:83605:28) at saveStateAndInvoke (C:\projects\awesome-cordova-plugins\node_modules\typescript\lib\typescript.js:83518:27) at sourceElementVisitor (C:\projects\awesome-cordova-plugins\node_modules\typescript\lib\typescript.js:83590:20) at visitNodes (C:\projects\awesome-cordova-plugins\node_modules\typescript\lib\typescript.js:81433:48) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! awesome-cordova-plugins@6.4.0 build:esm: `ts-node -P scripts/tsconfig.json scripts/tasks/build-esm` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the awesome-cordova-plugins@6.4.0 build:esm script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User1\AppData\Roaming\npm-cache\_logs\2023-12-03T16_49_54_662Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! awesome-cordova-plugins@6.4.0 build: `npm run build:core && npm run build:esm && npm run build:ngx && npm run build:es5` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the awesome-cordova-plugins@6.4.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User1\AppData\Roaming\npm-cache\_logs\2023-12-03T16_49_54_711Z-debug.log
Other information:
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
ionic info
insert the output from ionic info here
There has been no recent activity and this issue has been marked inactive.
I'm submitting a ... (check one with "x")
Current behavior:
error: Error transforming method: restart error: Cannot read property 'kind' of undefined info: transformClass: Diagnostic {"durationMs":5} node_modules\typescript\lib\typescript.js:83925 return !!(node.transformFlags & 2048 / ContainsTypeScriptClassSyntax /); ^ TypeError: Cannot read property 'transformFlags' of undefined
Expected behavior:
successful build
Steps to reproduce:
npm i npm run build
tested with different nodejs versions from 14 to 20
Related code:
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):