-
Notifications
You must be signed in to change notification settings - Fork 312
Open
Labels
bugUnwanted or unintended logic causing harmUnwanted or unintended logic causing harm
Description
What version of Stacks.js are you using?
"@stacks/transactions": "^7.0.2",
Describe the bug
Bad lodash import in @stacks/transactions. See partial build log below.
How to reproduce
import @stacks/transactions 7.0.2
Expected behavior
looks like part of a deprecated function. not sure.
Additional context
Build error on Netlify using Node v20. See partial build error below.
5:54:03 PM: x Build failed in 5.12s
5:54:03 PM: node_modules/@stacks/transactions/dist/esm/utils.js (7:7): "default" is not exported by "node_modules/lodash.clonedeep/index.js", imported by "node_modules/@stacks/transactions/dist/esm/utils.js".
5:54:03 PM: file: /opt/build/repo/node_modules/@stacks/transactions/dist/esm/utils.js:7:7
5:54:03 PM:
5:54:03 PM: 5: import { bytesToHex, concatArray, concatBytes, utf8ToBytes } from '@stacks/common';
5:54:03 PM: 6: import { c32addressDecode } from 'c32check';
5:54:03 PM: 7: import lodashCloneDeep from 'lodash.clonedeep';
5:54:03 PM: ^
5:54:03 PM: 8: import { deserializeCV, serializeCV } from './clarity';
5:54:03 PM: 9: export { verify as verifySignature } from '@noble/secp256k1';
5:54:03 PM:
5:54:03 PM: at getRollupError (file:///opt/build/repo/node_modules/@quasar/app-vite/node_modules/rollup/dist/es/shared/parseAst.js:396:41)
5:54:03 PM: at error (file:///opt/build/repo/node_modules/@quasar/app-vite/node_modules/rollup/dist/es/shared/parseAst.js:392:42)
5:54:03 PM: at Module.error (file:///opt/build/repo/node_modules/@quasar/app-vite/node_modules/rollup/dist/es/shared/node-entry.js:15710:16)
5:54:03 PM: at Module.traceVariable (file:///opt/build/repo/node_modules/@quasar/app-vite/node_modules/rollup/dist/es/shared/node-entry.js:16159:29)
5:54:03 PM: at ModuleScope.findVariable (file:///opt/build/repo/node_modules/@quasar/app-vite/node_modules/rollup/dist/es/shared/node-entry.js:13886:39)
5:54:03 PM: at FunctionScope.findVariable (file:///opt/build/repo/node_modules/@quasar/app-vite/node_modules/rollup/dist/es/shared/node-entry.js:5305:38)
5:54:03 PM: at FunctionBodyScope.findVariable (file:///opt/build/repo/node_modules/@quasar/app-vite/node_modules/rollup/dist/es/shared/node-entry.js:5305:38)
5:54:03 PM: at Identifier.bind (file:///opt/build/repo/node_modules/@quasar/app-vite/node_modules/rollup/dist/es/shared/node-entry.js:5088:40)
5:54:03 PM: at CallExpression.bind (file:///opt/build/repo/node_modules/@quasar/app-vite/node_modules/rollup/dist/es/shared/node-entry.js:2675:23)
5:54:03 PM: at CallExpression.bind (file:///opt/build/repo/node_modules/@quasar/app-vite/node_modules/rollup/dist/es/shared/node-entry.js:11312:15) {
5:54:03 PM: binding: 'default',
5:54:03 PM: code: 'MISSING_EXPORT',
5:54:03 PM: exporter: '/opt/build/repo/node_modules/lodash.clonedeep/index.js',
5:54:03 PM: id: '/opt/build/repo/node_modules/@stacks/transactions/dist/esm/utils.js',
5:54:03 PM: url: 'https://rollupjs.org/troubleshooting/#error-name-is-not-exported-by-module',
5:54:03 PM: pos: 329,
5:54:03 PM: loc: {
5:54:03 PM: column: 7,
5:54:03 PM: file: '/opt/build/repo/node_modules/@stacks/transactions/dist/esm/utils.js',
5:54:03 PM: line: 7
5:54:03 PM: },
5:54:03 PM: frame: "5: import { bytesToHex, concatArray, concatBytes, utf8ToBytes } from '@stacks/common';\n" +
5:54:03 PM: "6: import { c32addressDecode } from 'c32check';\n" +
5:54:03 PM: "7: import lodashCloneDeep from 'lodash.clonedeep';\n" +
5:54:03 PM: ' ^\n' +
5:54:03 PM: "8: import { deserializeCV, serializeCV } from './clarity';\n" +
5:54:03 PM: "9: export { verify as verifySignature } from '@noble/secp256k1';",
Metadata
Metadata
Assignees
Labels
bugUnwanted or unintended logic causing harmUnwanted or unintended logic causing harm