Skip to content

ng build fails in esbuild optimization with ERROR: Expected identifier but found "=" #23842

Closed as not planned

Description

@janniks

Command

build

Description

ng build fails on esbuild optimization with an error

Minimal Reproduction

Reproduction: https://github.com/hirosystems/stacks.js-starters/tree/reproduce/angular-esbuild-fails-to-optimize/templates/template-angular

npm install
npm run build

Exception or Error

Error: Optimization error [main.108cfaa997006c95.js]: Error: Transform failed with 1 error:
main.108cfaa997006c95.js:51652:5: ERROR: Expected identifier but found "="

Your Environment

Angular CLI: 14.1.0
Node: 16.17.0
Package Manager: npm 8.15.0 
OS: darwin arm64

Angular: 14.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1401.0
@angular-devkit/build-angular   14.1.0
@angular-devkit/core            14.1.0
@angular-devkit/schematics      14.1.0
@schematics/angular             14.1.0
rxjs                            7.5.6
typescript                      4.7.4

Anything else relevant?

Adding this commit stx-labs/stacks.js-starters@a0937f3 breaks the build

It seems to be a part of the esbuild optimization (disabling optimization for prod fixes the build).

Activity

  1. alan-agius4 commented on Sep 1, 2022

    @alan-agius4
    Collaborator

    Esbuild is doing the right thing here as indeed the bundle contains invalid syntax.

    // EXTERNAL MODULE: buffer/
    var  = __webpack_require__(8664);
    ;// CONCATENATED MODULE: ./utils

    Webpack is generating wrong code and it a result of the large number of errors in the compilation.

    ./node_modules/@stacks/auth/dist/esm/messages.js:74:26-37 - Error: export 'bytesToUtf8' (imported as 'bytesToUtf8') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/authorization.js:61:9-20 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/authorization.js:68:2-15 - Error: export 'writeUInt16BE' (imported as 'writeUInt16BE') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/authorization.js:70:9-20 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/authorization.js:362:9-20 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/bytesReader.js:34:11-23 - Error: export 'readUInt32BE' (imported as 'readUInt32BE') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/bytesReader.js:38:11-20 - Error: export 'readUInt8' (imported as 'readUInt8') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/bytesReader.js:42:11-23 - Error: export 'readUInt16BE' (imported as 'readUInt16BE') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/clarityValue.js:20:20-32 - Error: export 'bytesToAscii' (imported as 'bytesToAscii') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/clarityValue.js:171:30-42 - Error: export 'asciiToBytes' (imported as 'asciiToBytes') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/deserialize.js:89:23-35 - Error: export 'bytesToAscii' (imported as 'bytesToAscii') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/deserialize.js:94:22-33 - Error: export 'bytesToUtf8' (imported as 'bytesToUtf8') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/serialize.js:9:9-20 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/serialize.js:26:2-15 - Error: export 'writeUInt32BE' (imported as 'writeUInt32BE') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/serialize.js:31:16-29 - Error: export 'bigIntToBytes' (imported as 'bigIntToBytes') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/serialize.js:36:16-29 - Error: export 'bigIntToBytes' (imported as 'bigIntToBytes') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/serialize.js:55:2-15 - Error: export 'writeUInt32BE' (imported as 'writeUInt32BE') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/serialize.js:63:34-45 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/serialize.js:69:2-15 - Error: export 'writeUInt32BE' (imported as 'writeUInt32BE') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/serialize.js:80:34-45 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/serialize.js:85:36-48 - Error: export 'asciiToBytes' (imported as 'asciiToBytes') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/serialize.js:87:2-15 - Error: export 'writeUInt32BE' (imported as 'writeUInt32BE') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/clarity/serialize.js:90:34-45 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/keys.js:74:28-39 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/keys.js:77:15-32 - Error: export 'privateKeyToBytes' (imported as 'privateKeyToBytes') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/payload.js:95:6-19 - Error: export 'writeUInt32BE' (imported as 'writeUInt32BE') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/payload.js:115:9-20 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/signature.js:76:9-20 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/transaction.js:166:4-17 - Error: export 'writeUInt32BE' (imported as 'writeUInt32BE') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/transaction.js:173:11-22 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/types.js:135:9-20 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/types.js:155:9-20 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/types.js:185:9-20 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/types.js:190:18-29 - Error: export 'bytesToUtf8' (imported as 'bytesToUtf8') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/types.js:211:9-20 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/types.js:214:18-29 - Error: export 'bytesToUtf8' (imported as 'bytesToUtf8') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/types.js:225:9-20 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/types.js:251:9-20 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/types.js:310:9-20 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/utils.js:52:23-34 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/utils.js:69:17-28 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    
    ./node_modules/@stacks/transactions/dist/esm/utils.js:75:23-34 - Error: export 'concatArray' (imported as 'concatArray') was not found in '@stacks/common' (possible exports: BLOCKSTACK_DEFAULT_GAIA_HUB_URL, BLOCKSTACK_HANDLER, BadPathError, BlockstackError, Buffer, ChainID, ConflictError, DoesNotExist, ERROR_CODES, FailedDecryptionError, GaiaHubError, InvalidAmountError, InvalidDIDError, InvalidParameterError, InvalidStateError, Logger, LoginFailedError, MissingParameterError, NoSessionDataError, NotEnoughFundsError, NotEnoughProofError, PRIVATE_KEY_COMPRESSED_LENGTH, PRIVATE_KEY_UNCOMPRESSED_LENGTH, PayloadTooLargeError, PreconditionFailedError, RemoteServiceError, SignatureVerificationError, TransactionVersion, ValidationError, bytesToHex, concatBytes, config, fromTwos, getAesCbcOutputLength, getBase64OutputLength, getGlobalObject, getGlobalObjects, getGlobalScope, hexToBigInt, hexToBytes, hexToInt, intToBigInt, intToBytes, intToHex, isLaterVersion, isSameOriginAbsoluteUrl, makeUUID4, megabytesToBytes, nextHour, nextMonth, nextYear, parseRecoverableSignatureVrs, privateKeyToBuffer, signatureRsvToVrs, signatureVrsToRsv, toBuffer, toBytes, toTwos, updateQueryStringParameter, utf8ToBytes, with0x)
    

    Closing as this is not actionable and the error is expected since the inputted JavaScript has errors.

  2. janniks commented on Sep 2, 2022

    @janniks
    Author

    Thanks for checking. I couldn't figure out how to get the relevant line to display. Where did you get the relevant file from?

    I tried going through the file (with the same name in dist) when optimization was disabled, but it showed very different code for the logged line number. Also building with optimization-disabled and then manually running the file through esbuild worked without errors, which confused me a bit...

  3. alan-agius4 commented on Sep 2, 2022

    @alan-agius4
    Collaborator

    Thanks for checking. I couldn't figure out how to get the relevant line to display. Where did you get the relevant file from?

    I used the debugger to check the file since it was in memory.

    I tried going through the file (with the same name in dist) when optimization was disabled, but it showed very different code for the logged line number. Also building with optimization-disabled and then manually running the file through esbuild worked without errors, which confused me a bit...

    How you managed this? As when optimizations (ng b --no-optimization) are disabled the build fails and the files are not emitted to disk.

  4. janniks commented on Sep 2, 2022

    @janniks
    Author

    The previous cli version used to also log the file that's throwing the error (so it was easier so set a breakpoint), will also try to find the correct point in code... 😕

    I disabled through the angular.json file:

    "configurations": {
      "production": {
        "optimization": false, <--

    Just tested again and it doesn't throw the same error, but something like Error: bundle initial exceeded maximum budget. (but the dist is written)

  5. alan-agius4 commented on Sep 2, 2022

    @alan-agius4
    Collaborator

    It appears that during the packages install I was not using the lock file which ended up installing more recent versions of @stacks/ which ended up causing more errors as shown above.

    At this stage the files are already bundle and processed by Webpack and hence the Angular CLI cannot easily print the original file that is causing the problem.

    Here is the problematic line, this is generated by Webpack.

    // EXTERNAL MODULE: buffer/
    var  = __webpack_require__(8908);
    ;// CONCATENATED MODULE: ./node_modules/@stacks/encryption/node_modules/@stacks/common/dist/esm/utils.js
    

    It does appear that the problem is caused by the following lines:

    import { Buffer as BufferPolyfill } from 'buffer/';
  6. janniks commented on Sep 2, 2022

    @janniks
    Author

    Interesting thanks! I'll look into it. I also managed to run build with debugger breakpoint now and inspect in-memory info 👍

  7. janniks commented on Sep 2, 2022

    @janniks
    Author

    Thanks for finding that line — helped a bunch! ✅ Issue resolved

  8. angular-automatic-lock-bot commented on Oct 3, 2022

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  9. locked and limited conversation to collaborators on Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions