metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.32k stars 6.26k forks source link

Error running yarn build #817

Closed spvn closed 2 years ago

spvn commented 2 years ago
PS C:\Projects\nft-experiment\metaplex\js> yarn build
yarn run v1.22.17
$ lerna run build
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 4 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@oyster/common' in 5.7s:
$ run-s build-ts build-css
$ tsc
$ less-watch-compiler src/ dist/lib/ --run-once
Running less-watch-compiler once.
lerna ERR! yarn run build exited 2 in '@metaplex/cli'
lerna ERR! yarn run build stdout:
$ tsc -p ./src
../../node_modules/@types/three/src/renderers/WebGLRenderer.d.ts(38,34): error TS2304: Cannot find name 'OffscreenCanvas'.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run build stderr:
error Command failed with exit code 2.

lerna ERR! yarn run build exited 2 in '@metaplex/cli'
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I'm getting this error when running yarn build. Typescript is definitely installed and tsc --version shows 4.4.4. Any ideas what I'm doing wrong? I've already called yarn install and yarn bootstrap before this.

kingahmedino commented 2 years ago

I tried to downgrade my node version from 17.0.1 (which is the current version) to 16.13.0 and the yarn build issue is fixed

arudeboy commented 2 years ago

This should be fixed on master. Anyone having issues still should ensure you're working from a clean slate

git stash # Stash any local file changes
git checkout master
git pull

yarn cache clean # Clear your node modules
lerna clean -y
yarn install
lerna bootstrap

yarn build # Try again

If you're still having issues after this, please paste your terminal log here.

This worked for me too!! I really appreciate your help!!

jjohnson5253 commented 2 years ago

I'm still getting this error on fresh install of Metaplex... Using m1 chip

[5/5] 🔨 Building fresh packages... [6/25] ⢀ secp256k1 [11/25] ⢀ keccak [10/25] ⢀ secp256k1 [8/25] ⢀ pngquant-bin error /Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/canvas: Command failed. Exit code: 1 Command: node-pre-gyp install --fallback-to-build Arguments: Directory: /Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/canvas Output: node-pre-gyp info it worked if it ends with ok node-pre-gyp info using node-pre-gyp@1.0.5 node-pre-gyp info using node@14.17.0 | darwin | arm64 node-pre-gyp info check checked for "/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/canvas/build/Release/canvas.node" (not found) node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v83-darwin-unknown-arm64.tar.gz node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v83-darwin-unknown-arm64.tar.gz node-pre-gyp WARN Pre-built binaries not installable for canvas@2.8.0 and node@14.17.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v83-darwin-unknown-arm64.tar.gz gyp info it worked if it ends with ok gyp info using node-gyp@5.1.1 gyp info using node@14.17.0 | darwin | arm64 gyp info ok gyp info it worked if it ends with ok gyp info using node-gyp@5.1.1 gyp info using node@14.17.0 | darwin | arm64 gyp info find Python using Python version 2.7.18 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python" gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python gyp info spawn args [ gyp info spawn args '/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/canvas/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/jakejohnson/Library/Caches/node-gyp/14.17.0/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/Users/jakejohnson/Library/Caches/node-gyp/14.17.0', gyp info spawn args '-Dnode_gyp_dir=/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/Users/jakejohnson/Library/Caches/node-gyp/14.17.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/canvas', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] /bin/sh: pkg-config: command not found gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 127 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/node-gyp/lib/configure.js:351:16) gyp ERR! stack at ChildProcess.emit (events.js:376:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) gyp ERR! System Darwin 21.1.0 gyp ERR! command "/Users/jakejohnson/.nvm/versions/node/v14.17.0/bin/node" "/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd /Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/canvas gyp ERR! node -v v14.17.0 gyp ERR! node-gyp -v v5.1.1 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/Users/jakejohnson/.nvm/versions/node/v14.17.0/bin/node /Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess. (/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:376:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1055:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) node-pre-gyp ERR! System Darwin 21.1.0 node-pre-gyp ERR! command "/Users/jakejohnson/.nvm/versions/node/v14.17.0/bin/node" "/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/canvas node-pre-gyp ERR! node -v v14.17.0 node-pre-gyp ERR! node-pre-gyp -v v1.0.5 node-pre-gyp ERR! not ok Failed to execute '/Users/jakejohnson/.nvm/versions/node/v14.17.0/bin/node /Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/jakejohnson/metaplex-foundation/metaplex/js/node_modules/c

jjohnson5253 commented 2 years ago

I was able to work around it by brew installing canvas: brew install pkg-config cairo pango libpng jpeg giflib librsvg

j-funk commented 2 years ago

This should be fixed on master. Anyone having issues still should ensure you're working from a clean slate

git stash # Stash any local file changes
git checkout master
git pull

yarn cache clean # Clear your node modules
lerna clean -y
yarn install
lerna bootstrap

yarn build # Try again

If you're still having issues after this, please paste your terminal log here.

@carthanas

I'm on master, followed all advice on this thread, still getting the following error:


$ yarn build
yarn run v1.22.10
$ lerna run build
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 4 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@oyster/common' in 21.9s:
$ run-s build-ts build-css
$ tsc
$ less-watch-compiler src/ dist/lib/ --run-once
Running less-watch-compiler once.
lerna ERR! yarn run build exited 2 in '@metaplex/cli'
lerna ERR! yarn run build stdout:
$ tsc -p ./src
node_modules/typescript/lib/lib.dom.d.ts(25,1): error TS6200: Definitions of the following identifiers conflict with those in another file: NodeFilter, XPathNSResolver, SVGMatrix, WebKitCSSMatrix, SVGPoint, SVGRect, location, webkitURL, ImportExportKind, TableKind, ValueType, ExportValue, Exports, ImportValue, Imports, ModuleImports, ElementTagNameMap, name, AlgorithmIdentifier, BigInteger, BlobPart, BodyInit, BufferSource, COSEAlgorithmIdentifier, CanvasImageSource, ConstrainBoolean, ConstrainDOMString, ConstrainDouble, ConstrainULong, DOMHighResTimeStamp, DOMTimeStamp, EventListenerOrEventListenerObject, Float32List, FormDataEntryValue, GLbitfield, GLboolean, GLclampf, GLenum, GLfloat, GLint, GLint64, GLintptr, GLsizei, GLsizeiptr, GLuint, GLuint64, HTMLOrSVGImageElement, HTMLOrSVGScriptElement, HashAlgorithmIdentifier, HeadersInit, IDBValidKey, ImageBitmapSource, InsertPosition, Int32List, LineAndPositionSetting, MediaProvider, MessageEventSource, MutationRecordType, NamedCurve, OnBeforeUnloadEventHandler, OnErrorEventHandler, PerformanceEntryList, ReadableStreamController, ReadableStreamDefaultReadResult, ReadableStreamReader, RenderingContext, RequestInfo, TexImageSource, TimerHandler, Transferable, Uint32List, UvmEntries, UvmEntry, VibratePattern, WindowProxy, AlignSetting, AnimationPlayState, AppendMode, AttestationConveyancePreference, AudioContextLatencyCategory, AudioContextState, AuthenticatorAttachment, AuthenticatorTransport, AutoKeyword, AutomationRate, BinaryType, BiquadFilterType, CanPlayTypeResult, CanvasDirection, CanvasFillRule, CanvasLineCap, CanvasLineJoin, CanvasTextAlign, CanvasTextBaseline, ChannelCountMode, ChannelInterpretation, ClientTypes, ColorSpaceConversion, CompositeOperation, CompositeOperationOrAuto, CredentialMediationRequirement, DOMParserSupportedType, DirectionSetting, DisplayCaptureSurfaceType, DistanceModelType, DocumentReadyState, EndOfStreamError, EndingType, FillMode, FullscreenNavigationUI, GamepadHapticActuatorType, GamepadMappingType, IDBCursorDirection, IDBRequestReadyState, IDBTransactionMode, ImageOrientation, ImageSmoothingQuality, IterationCompositeOperation, KeyFormat, KeyType, KeyUsage, LineAlignSetting, MediaDeviceKind, MediaKeyMessageType, MediaKeySessionType, MediaKeyStatus, MediaKeysRequirement, MediaStreamTrackState, NavigationType, NotificationDirection, NotificationPermission, OrientationLockType, OrientationType, OscillatorType, OverSampleType, PanningModelType, PaymentComplete, PermissionName, PermissionState, PlaybackDirection, PositionAlignSetting, PremultiplyAlpha, PublicKeyCredentialType, PushEncryptionKeyName, PushPermissionState, RTCBundlePolicy, RTCDataChannelState, RTCDtlsTransportState, RTCIceCandidateType, RTCIceComponent, RTCIceConnectionState, RTCIceCredentialType, RTCIceGathererState, RTCIceGatheringState, RTCIceProtocol, RTCIceTcpCandidateType, RTCIceTransportPolicy, RTCIceTransportState, RTCPeerConnectionState, RTCRtcpMuxPolicy, RTCRtpTransceiverDirection, RTCSdpType, RTCSignalingState, RTCStatsIceCandidatePairState, RTCStatsType, ReadyState, ReferrerPolicy, RequestCache, RequestCredentials, RequestDestination, RequestMode, RequestRedirect, ResidentKeyRequirement, ResizeObserverBoxOptions, ResizeQuality, ResponseType, ScrollBehavior, ScrollLogicalPosition, ScrollRestoration, ScrollSetting, SelectionMode, ServiceWorkerState, ServiceWorkerUpdateViaCache, ShadowRootMode, SpeechSynthesisErrorCode, TextTrackKind, TextTrackMode, TouchType, UserVerificationRequirement, VideoFacingModeEnum, VisibilityState, WebGLPowerPreference, WorkerType, XMLHttpRequestResponseType
node_modules/typescript/lib/lib.dom.d.ts(1288,5): error TS2687: All declarations of 'localCandidateId' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(1294,5): error TS2687: All declarations of 'remoteCandidateId' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(1301,5): error TS2687: All declarations of 'state' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(1304,5): error TS2687: All declarations of 'transportId' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(1532,5): error TS2687: All declarations of 'id' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(1533,5): error TS2687: All declarations of 'timestamp' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(1534,5): error TS2687: All declarations of 'type' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(1551,5): error TS2687: All declarations of 'dtlsState' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(1716,5): error TS2687: All declarations of 'documentURI' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(1717,5): error TS2687: All declarations of 'effectiveDirective' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(1719,5): error TS2687: All declarations of 'originalPolicy' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(1722,5): error TS2687: All declarations of 'statusCode' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(1723,5): error TS2687: All declarations of 'violatedDirective' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(3733,5): error TS2687: All declarations of 'privateKey' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(3734,5): error TS2687: All declarations of 'publicKey' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(11157,5): error TS2687: All declarations of 'constraint' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(15207,14): error TS2687: All declarations of 'type' must have identical modifiers.
node_modules/typescript/lib/lib.dom.d.ts(18209,5): error TS2687: All declarations of 'customElements' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(7,1): error TS6200: Definitions of the following identifiers conflict with those in another file: NodeFilter, XPathNSResolver, SVGMatrix, WebKitCSSMatrix, SVGPoint, SVGRect, location, webkitURL, ImportExportKind, TableKind, ValueType, ExportValue, Exports, ImportValue, Imports, ModuleImports, ElementTagNameMap, name, AlgorithmIdentifier, BigInteger, BlobPart, BodyInit, BufferSource, COSEAlgorithmIdentifier, CanvasImageSource, ConstrainBoolean, ConstrainDOMString, ConstrainDouble, ConstrainULong, DOMHighResTimeStamp, DOMTimeStamp, EventListenerOrEventListenerObject, Float32List, FormDataEntryValue, GLbitfield, GLboolean, GLclampf, GLenum, GLfloat, GLint, GLint64, GLintptr, GLsizei, GLsizeiptr, GLuint, GLuint64, HTMLOrSVGImageElement, HTMLOrSVGScriptElement, HashAlgorithmIdentifier, HeadersInit, IDBValidKey, ImageBitmapSource, InsertPosition, Int32List, LineAndPositionSetting, MediaProvider, MessageEventSource, MutationRecordType, NamedCurve, OnBeforeUnloadEventHandler, OnErrorEventHandler, PerformanceEntryList, ReadableStreamController, ReadableStreamDefaultReadResult, ReadableStreamReader, RenderingContext, RequestInfo, TexImageSource, TimerHandler, Transferable, Uint32List, UvmEntries, UvmEntry, VibratePattern, WindowProxy, AlignSetting, AnimationPlayState, AppendMode, AttestationConveyancePreference, AudioContextLatencyCategory, AudioContextState, AuthenticatorAttachment, AuthenticatorTransport, AutoKeyword, AutomationRate, BinaryType, BiquadFilterType, CanPlayTypeResult, CanvasDirection, CanvasFillRule, CanvasLineCap, CanvasLineJoin, CanvasTextAlign, CanvasTextBaseline, ChannelCountMode, ChannelInterpretation, ClientTypes, ColorSpaceConversion, CompositeOperation, CompositeOperationOrAuto, CredentialMediationRequirement, DOMParserSupportedType, DirectionSetting, DisplayCaptureSurfaceType, DistanceModelType, DocumentReadyState, EndOfStreamError, EndingType, FillMode, FullscreenNavigationUI, GamepadHapticActuatorType, GamepadMappingType, IDBCursorDirection, IDBRequestReadyState, IDBTransactionMode, ImageOrientation, ImageSmoothingQuality, IterationCompositeOperation, KeyFormat, KeyType, KeyUsage, LineAlignSetting, MediaDeviceKind, MediaKeyMessageType, MediaKeySessionType, MediaKeyStatus, MediaKeysRequirement, MediaStreamTrackState, NavigationType, NotificationDirection, NotificationPermission, OrientationLockType, OrientationType, OscillatorType, OverSampleType, PanningModelType, PaymentComplete, PermissionName, PermissionState, PlaybackDirection, PositionAlignSetting, PremultiplyAlpha, PublicKeyCredentialType, PushEncryptionKeyName, PushPermissionState, RTCBundlePolicy, RTCDataChannelState, RTCDtlsTransportState, RTCIceCandidateType, RTCIceComponent, RTCIceConnectionState, RTCIceCredentialType, RTCIceGathererState, RTCIceGatheringState, RTCIceProtocol, RTCIceTcpCandidateType, RTCIceTransportPolicy, RTCIceTransportState, RTCPeerConnectionState, RTCRtcpMuxPolicy, RTCRtpTransceiverDirection, RTCSdpType, RTCSignalingState, RTCStatsIceCandidatePairState, RTCStatsType, ReadyState, ReferrerPolicy, RequestCache, RequestCredentials, RequestDestination, RequestMode, RequestRedirect, ResidentKeyRequirement, ResizeObserverBoxOptions, ResizeQuality, ResponseType, ScrollBehavior, ScrollLogicalPosition, ScrollRestoration, ScrollSetting, SelectionMode, ServiceWorkerState, ServiceWorkerUpdateViaCache, ShadowRootMode, SpeechSynthesisErrorCode, TextTrackKind, TextTrackMode, TouchType, UserVerificationRequirement, VideoFacingModeEnum, VisibilityState, WebGLPowerPreference, WorkerType, XMLHttpRequestResponseType
../../../../node_modules/@types/web/index.d.ts(14,5): error TS2717: Subsequent property declarations must have the same type.  Property 'iv' must be of type 'ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array', but here has type 'BufferSource'.
../../../../node_modules/@types/web/index.d.ts(18,5): error TS2717: Subsequent property declarations must have the same type.  Property 'counter' must be of type 'ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array', but here has type 'BufferSource'.
../../../../node_modules/@types/web/index.d.ts(27,5): error TS2717: Subsequent property declarations must have the same type.  Property 'additionalData' must be of type 'ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array', but here has type 'BufferSource'.
../../../../node_modules/@types/web/index.d.ts(28,5): error TS2717: Subsequent property declarations must have the same type.  Property 'iv' must be of type 'ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array', but here has type 'BufferSource'.
../../../../node_modules/@types/web/index.d.ts(221,5): error TS2374: Duplicate string index signature.
../../../../node_modules/@types/web/index.d.ts(269,5): error TS2687: All declarations of 'privateKey' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(270,5): error TS2687: All declarations of 'publicKey' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(529,5): error TS2717: Subsequent property declarations must have the same type.  Property 'info' must be of type 'ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array', but here has type 'BufferSource'.
../../../../node_modules/@types/web/index.d.ts(530,5): error TS2717: Subsequent property declarations must have the same type.  Property 'salt' must be of type 'ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array', but here has type 'BufferSource'.
../../../../node_modules/@types/web/index.d.ts(663,5): error TS2374: Duplicate string index signature.
../../../../node_modules/@types/web/index.d.ts(997,5): error TS2717: Subsequent property declarations must have the same type.  Property 'supportedMethods' must be of type 'string | string[]', but here has type 'string'.
../../../../node_modules/@types/web/index.d.ts(1019,5): error TS2717: Subsequent property declarations must have the same type.  Property 'supportedMethods' must be of type 'string | string[]', but here has type 'string'.
../../../../node_modules/@types/web/index.d.ts(1033,5): error TS2717: Subsequent property declarations must have the same type.  Property 'salt' must be of type 'ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array', but here has type 'BufferSource'.
../../../../node_modules/@types/web/index.d.ts(1107,5): error TS2374: Duplicate string index signature.
../../../../node_modules/@types/web/index.d.ts(1231,5): error TS2687: All declarations of 'localCandidateId' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(1233,5): error TS2687: All declarations of 'remoteCandidateId' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(1238,5): error TS2687: All declarations of 'state' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(1240,5): error TS2687: All declarations of 'transportId' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(1397,5): error TS2687: All declarations of 'id' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(1398,5): error TS2687: All declarations of 'timestamp' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(1399,5): error TS2687: All declarations of 'type' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(1413,5): error TS2687: All declarations of 'dtlsState' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(1474,5): error TS2717: Subsequent property declarations must have the same type.  Property 'window' must be of type 'any', but here has type 'null'.
../../../../node_modules/@types/web/index.d.ts(1510,5): error TS2717: Subsequent property declarations must have the same type.  Property 'label' must be of type 'ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array', but here has type 'BufferSource'.
../../../../node_modules/@types/web/index.d.ts(1548,5): error TS2687: All declarations of 'documentURI' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(1549,5): error TS2687: All declarations of 'effectiveDirective' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(1551,5): error TS2687: All declarations of 'originalPolicy' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(1555,5): error TS2687: All declarations of 'statusCode' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(1556,5): error TS2687: All declarations of 'violatedDirective' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(2601,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(3134,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(3167,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'CSSStyleSheet' must be of type '{ new (): CSSStyleSheet; prototype: CSSStyleSheet; }', but here has type '{ new (options?: CSSStyleSheetInit): CSSStyleSheet; prototype: CSSStyleSheet; }'.
../../../../node_modules/@types/web/index.d.ts(3882,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(3916,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(3926,5): error TS2374: Duplicate string index signature.
../../../../node_modules/@types/web/index.d.ts(3992,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(4068,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(4094,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'DeviceMotionEvent' must be of type '{ new (type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; prototype: DeviceMotionEvent; requestPermission(): Promise<...>; }', but here has type '{ new (type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; prototype: DeviceMotionEvent; }'.
../../../../node_modules/@types/web/index.d.ts(4119,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'DeviceOrientationEvent' must be of type '{ new (type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; prototype: DeviceOrientationEvent; requestPermission(): Promise<...>; }', but here has type '{ new (type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; prototype: DeviceOrientationEvent; }'.
../../../../node_modules/@types/web/index.d.ts(4156,14): error TS2717: Subsequent property declarations must have the same type.  Property 'applets' must be of type 'HTMLCollectionOf<HTMLAppletElement>', but here has type 'HTMLCollection'.
../../../../node_modules/@types/web/index.d.ts(4911,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'EventSource' must be of type '{ new (url: string, eventSourceInitDict?: EventSourceInit): EventSource; prototype: EventSource; readonly CLOSED: number; readonly CONNECTING: number; readonly OPEN: number; }', but here has type '{ new (url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource; prototype: EventSource; readonly CLOSED: number; readonly CONNECTING: number; readonly OPEN: number; }'.
../../../../node_modules/@types/web/index.d.ts(4978,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(5372,5): error TS2717: Subsequent property declarations must have the same type.  Property '"submit"' must be of type 'Event', but here has type 'SubmitEvent'.
../../../../node_modules/@types/web/index.d.ts(5627,5): error TS2717: Subsequent property declarations must have the same type.  Property 'onsubmit' must be of type '(this: GlobalEventHandlers, ev: Event) => any', but here has type '(this: GlobalEventHandlers, ev: SubmitEvent) => any'.
../../../../node_modules/@types/web/index.d.ts(5685,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(5940,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(5956,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(6247,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(6248,5): error TS2374: Duplicate string index signature.
../../../../node_modules/@types/web/index.d.ts(6970,5): error TS2717: Subsequent property declarations must have the same type.  Property 'preload' must be of type 'string', but here has type '"" | "auto" | "none" | "metadata"'.
../../../../node_modules/@types/web/index.d.ts(7536,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(7836,14): error TS2717: Subsequent property declarations must have the same type.  Property 'cells' must be of type 'HTMLCollectionOf<HTMLTableDataCellElement | HTMLTableHeaderCellElement>', but here has type 'HTMLCollectionOf<HTMLTableCellElement>'.
../../../../node_modules/@types/web/index.d.ts(8597,14): error TS2717: Subsequent property declarations must have the same type.  Property 'canvas' must be of type 'HTMLCanvasElement | OffscreenCanvas', but here has type 'HTMLCanvasElement'.
../../../../node_modules/@types/web/index.d.ts(8617,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'ImageData' must be of type '{ new (sw: number, sh: number): ImageData; new (data: Uint8ClampedArray, sw: number, sh?: number): ImageData; prototype: ImageData; }', but here has type '{ new (sw: number, sh: number, settings?: ImageDataSettings): ImageData; new (data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; prototype: ImageData; }'.
../../../../node_modules/@types/web/index.d.ts(8914,14): error TS2717: Subsequent property declarations must have the same type.  Property 'closed' must be of type 'Promise<void>', but here has type 'Promise<MediaKeySessionClosedReason>'.
../../../../node_modules/@types/web/index.d.ts(8979,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(9328,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(9455,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(9582,14): error TS2717: Subsequent property declarations must have the same type.  Property 'parentNode' must be of type 'Node & ParentNode', but here has type 'ParentNode'.
../../../../node_modules/@types/web/index.d.ts(9707,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(9723,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(9765,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'Notification' must be of type '{ new (title: string, options?: NotificationOptions): Notification; prototype: Notification; readonly maxActions: number; readonly permission: NotificationPermission; requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<...>; }', but here has type '{ new (title: string, options?: NotificationOptions): Notification; prototype: Notification; readonly permission: NotificationPermission; requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<...>; }'.
../../../../node_modules/@types/web/index.d.ts(9868,14): error TS2687: All declarations of 'constraint' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(9871,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'OverconstrainedError' must be of type '{ new (): OverconstrainedError; prototype: OverconstrainedError; }', but here has type '{ new (constraint: string, message?: string): OverconstrainedError; prototype: OverconstrainedError; }'.
../../../../node_modules/@types/web/index.d.ts(9999,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'PaymentRequest' must be of type '{ new (methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest; prototype: PaymentRequest; }', but here has type '{ new (methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest; prototype: PaymentRequest; }'.
../../../../node_modules/@types/web/index.d.ts(10094,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'PerformanceMark' must be of type '{ new (): PerformanceMark; prototype: PerformanceMark; }', but here has type '{ new (markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark; prototype: PerformanceMark; }'.
../../../../node_modules/@types/web/index.d.ts(10371,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(10393,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(10559,5): error TS2717: Subsequent property declarations must have the same type.  Property '"error"' must be of type 'RTCErrorEvent', but here has type 'Event'.
../../../../node_modules/@types/web/index.d.ts(10575,5): error TS2717: Subsequent property declarations must have the same type.  Property 'onerror' must be of type '(this: RTCDataChannel, ev: RTCErrorEvent) => any', but here has type '(this: RTCDataChannel, ev: Event) => any'.
../../../../node_modules/@types/web/index.d.ts(10663,5): error TS2717: Subsequent property declarations must have the same type.  Property '"icecandidateerror"' must be of type 'RTCPeerConnectionIceErrorEvent', but here has type 'Event'.
../../../../node_modules/@types/web/index.d.ts(10683,5): error TS2717: Subsequent property declarations must have the same type.  Property 'onicecandidateerror' must be of type '(this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any', but here has type '(this: RTCPeerConnection, ev: Event) => any'.
../../../../node_modules/@types/web/index.d.ts(11039,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'Response' must be of type '{ new (body?: BodyInit, init?: ResponseInit): Response; prototype: Response; error(): Response; redirect(url: string, status?: number): Response; }', but here has type '{ new (body?: BodyInit, init?: ResponseInit): Response; prototype: Response; error(): Response; redirect(url: string | URL, status?: number): Response; }'.
../../../../node_modules/@types/web/index.d.ts(12091,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(12231,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(12282,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(12399,14): error TS2717: Subsequent property declarations must have the same type.  Property 'currentTranslate' must be of type 'DOMPoint', but here has type 'DOMPointReadOnly'.
../../../../node_modules/@types/web/index.d.ts(12437,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'SVGSVGElement' must be of type '{ new (): SVGSVGElement; prototype: SVGSVGElement; readonly SVG_ZOOMANDPAN_DISABLE: number; readonly SVG_ZOOMANDPAN_MAGNIFY: number; readonly SVG_ZOOMANDPAN_UNKNOWN: number; }', but here has type '{ new (): SVGSVGElement; prototype: SVGSVGElement; }'.
../../../../node_modules/@types/web/index.d.ts(12493,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(12762,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'SVGViewElement' must be of type '{ new (): SVGViewElement; prototype: SVGViewElement; readonly SVG_ZOOMANDPAN_DISABLE: number; readonly SVG_ZOOMANDPAN_MAGNIFY: number; readonly SVG_ZOOMANDPAN_UNKNOWN: number; }', but here has type '{ new (): SVGViewElement; prototype: SVGViewElement; }'.
../../../../node_modules/@types/web/index.d.ts(12981,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'SharedWorker' must be of type '{ new (scriptURL: string, options?: string | WorkerOptions): SharedWorker; prototype: SharedWorker; }', but here has type '{ new (scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker; prototype: SharedWorker; }'.
../../../../node_modules/@types/web/index.d.ts(13040,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(13062,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(13073,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(13226,5): error TS2374: Duplicate string index signature.
../../../../node_modules/@types/web/index.d.ts(13267,5): error TS2687: All declarations of 'type' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(13291,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(13543,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(13567,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(13639,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(13745,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'URL' must be of type '{ new (url: string, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }', but here has type '{ new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }'.
../../../../node_modules/@types/web/index.d.ts(13854,5): error TS2717: Subsequent property declarations must have the same type.  Property '"resize"' must be of type 'UIEvent', but here has type 'Event'.
../../../../node_modules/@types/web/index.d.ts(13862,5): error TS2717: Subsequent property declarations must have the same type.  Property 'onresize' must be of type '(this: VisualViewport, ev: UIEvent) => any', but here has type '(this: VisualViewport, ev: Event) => any'.
../../../../node_modules/@types/web/index.d.ts(15361,14): error TS2717: Subsequent property declarations must have the same type.  Property 'canvas' must be of type 'HTMLCanvasElement | OffscreenCanvas', but here has type 'HTMLCanvasElement'.
../../../../node_modules/@types/web/index.d.ts(15955,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'WebSocket' must be of type '{ new (url: string, protocols?: string | string[]): WebSocket; prototype: WebSocket; readonly CLOSED: number; readonly CLOSING: number; readonly CONNECTING: number; readonly OPEN: number; }', but here has type '{ new (url: string | URL, protocols?: string | string[]): WebSocket; prototype: WebSocket; readonly CLOSED: number; readonly CLOSING: number; readonly CONNECTING: number; readonly OPEN: number; }'.
../../../../node_modules/@types/web/index.d.ts(15998,14): error TS2687: All declarations of 'customElements' must have identical modifiers.
../../../../node_modules/@types/web/index.d.ts(16023,5): error TS2717: Subsequent property declarations must have the same type.  Property 'opener' must be of type 'Window', but here has type 'any'.
../../../../node_modules/@types/web/index.d.ts(16025,14): error TS2717: Subsequent property declarations must have the same type.  Property 'orientation' must be of type 'string | number', but here has type 'number'.
../../../../node_modules/@types/web/index.d.ts(16108,5): error TS2375: Duplicate number index signature.
../../../../node_modules/@types/web/index.d.ts(16558,9): error TS2403: Subsequent variable declarations must have the same type.  Variable 'CompileError' must be of type '{ new (): CompileError; prototype: CompileError; }', but here has type '{ (message?: string): CompileError; new (message?: string): CompileError; prototype: CompileError; }'.
../../../../node_modules/@types/web/index.d.ts(16586,9): error TS2403: Subsequent variable declarations must have the same type.  Variable 'LinkError' must be of type '{ new (): LinkError; prototype: LinkError; }', but here has type '{ (message?: string): LinkError; new (message?: string): LinkError; prototype: LinkError; }'.
../../../../node_modules/@types/web/index.d.ts(16616,9): error TS2403: Subsequent variable declarations must have the same type.  Variable 'RuntimeError' must be of type '{ new (): RuntimeError; prototype: RuntimeError; }', but here has type '{ (message?: string): RuntimeError; new (message?: string): RuntimeError; prototype: RuntimeError; }'.
../../../../node_modules/@types/web/index.d.ts(16629,9): error TS2403: Subsequent variable declarations must have the same type.  Variable 'Table' must be of type '{ new (descriptor: TableDescriptor): Table; prototype: Table; }', but here has type '{ new (descriptor: TableDescriptor, value?: any): Table; prototype: Table; }'.
../../../../node_modules/@types/web/index.d.ts(17060,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'opener' must be of type 'Window', but here has type 'any'.
../../../../node_modules/@types/web/index.d.ts(17062,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'orientation' must be of type 'string | number', but here has type 'number'.
../../../../node_modules/@types/web/index.d.ts(17379,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'onsubmit' must be of type '(this: Window, ev: Event) => any', but here has type '(this: Window, ev: SubmitEvent) => any'.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run build stderr:
error Command failed with exit code 2.

lerna ERR! yarn run build exited 2 in '@metaplex/cli'
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
carthanas commented 2 years ago

Not always able to respond here but I'll do my best to help.

Two things I notice just offhand:

  1. That issue looks very different to any of the others listed here or that I've seen in the last few weeks. It looks like your typescript module installation is hosed. I would suggest a scorched earth policy and start completely over again.

  2. Master is not the best to start from. Rather than trying to keep the master branch permanently stable, a few days ago Jordan and the team moved towards semantic versioning for releases.

It would be best to start with a fresh clone of the repo and checkout v1.0.0 as detailed here https://github.com/metaplex-foundation/metaplex#how-to-checkout-a-release

If you still have the issue with that version of the code then I would say something is screwy with your machine or there is a genuine bug that needs to be reported to the dev team.

For what its worth, I've checked out v1.0.0 on a mac and ubuntu box and both of them are working fine.

j-funk commented 2 years ago

Thanks, you were right. Turns out I had a version of TypeScript installed globally that was messing with the build.

safiyanaaz commented 2 years ago

sorted, i did the following;

git clone https://github.com/carthanas/metaplex.git
cd metaplex
git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207 -- js/yarn.lock
cd js
yarn install
yarn bootstrap
yarn build

Thanks @carthanas

Thanks for the feedback man 🙏 It also just worked for me after hours of trials ! Have you been able to yarn run the CLI in js/web/packages/cli/ ?

sorted, i did the following;

git clone https://github.com/carthanas/metaplex.git
cd metaplex
git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207 -- js/yarn.lock
cd js
yarn install
yarn bootstrap
yarn build

Thanks @carthanas

I followed the steps but getting same error on running yarn build lerna ERR! yarn run build exited 2 in '@metaplex/cli' lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately. error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.**

carthanas commented 2 years ago

I've deleted my forked repository as it seems to be causing people more confusion than help and the fix has already been merged into upstream.

@safiyanaaz Try the latest release version as outlined here https://github.com/metaplex-foundation/metaplex/issues/817#issuecomment-962690631

carthanas commented 2 years ago

Pretty confident the metaplex team has fixed this.

Here is the latest advice I can give to those having trouble.

git clone git@github.com:metaplex-foundation/metaplex.git
cd metaplex
git checkout tags/v1.0.0 -b mybranch
cd js
yarn install
yarn bootstrap
yarn build
safiyanaaz commented 2 years ago

yarn run v1.22.15 $ lerna run build lerna notice cli v3.22.1 lerna info versioning independent lerna info Executing command in 5 packages: "yarn run build" lerna info run Ran npm script 'build' in '@oyster/common' in 68.4s: $ run-s build-ts build-css $ tsc $ less-watch-compiler src/ dist/lib/ --run-once Running less-watch-compiler once. lerna ERR! yarn run build exited 2 in '@metaplex/cli' lerna ERR! yarn run build stdout: $ tsc -p ./src ../../node_modules/@types/react/index.d.ts(3084,19): error TS2320: Interface 'ElementClass' cannot simultaneously extend types 'Component<any, {}, any>' and 'Component<any, {}, any>'. Named property 'props' of types 'Component<any, {}, any>' and 'Component<any, {}, any>' are not identical. ../../node_modules/@types/react/index.d.ts(3084,19): error TS2320: Interface 'ElementClass' cannot simultaneously extend types 'Component<any, {}, any>' and 'Component<any, {}, any>'. Named property 'refs' of types 'Component<any, {}, any>' and 'Component<any, {}, any>' are not identical. ../../node_modules/@types/react/index.d.ts(3092,14): error TS2300: Duplicate identifier 'LibraryManagedAttributes'. ../../../../../node_modules/@types/react/index.d.ts(3100,14): error TS2300: Duplicate identifier 'LibraryManagedAttributes'. ../../../../../node_modules/@types/react/index.d.ts(3111,13): error TS2717: Subsequent property declarations must have the same type. Property 'a' must be of type 'DetailedHTMLProps<AnchorHTMLAttributes, HTMLAnchorElement>', but here has type 'DetailedHTMLProps<AnchorHTMLAttributes, HTMLAnchorElement>'. ../../../../../node_modules/@types/react/index.d.ts(3112,13): error TS2717: Subsequent property declarations must have the same type. Property 'abbr' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3113,13): error TS2717: Subsequent property declarations must have the same type. Property 'address' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3114,13): error TS2717: Subsequent property declarations must have the same type. Property 'area' must be of type 'DetailedHTMLProps<AreaHTMLAttributes, HTMLAreaElement>', but here has type 'DetailedHTMLProps<AreaHTMLAttributes, HTMLAreaElement>'. ../../../../../node_modules/@types/react/index.d.ts(3115,13): error TS2717: Subsequent property declarations must have the same type. Property 'article' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3116,13): error TS2717: Subsequent property declarations must have the same type. Property 'aside' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3117,13): error TS2717: Subsequent property declarations must have the same type. Property 'audio' must be of type 'DetailedHTMLProps<AudioHTMLAttributes, HTMLAudioElement>', but here has type 'DetailedHTMLProps<AudioHTMLAttributes, HTMLAudioElement>'. ../../../../../node_modules/@types/react/index.d.ts(3118,13): error TS2717: Subsequent property declarations must have the same type. Property 'b' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3119,13): error TS2717: Subsequent property declarations must have the same type. Property 'base' must be of type 'DetailedHTMLProps<BaseHTMLAttributes, HTMLBaseElement>', but here has type 'DetailedHTMLProps<BaseHTMLAttributes, HTMLBaseElement>'. ../../../../../node_modules/@types/react/index.d.ts(3120,13): error TS2717: Subsequent property declarations must have the same type. Property 'bdi' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3121,13): error TS2717: Subsequent property declarations must have the same type. Property 'bdo' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3122,13): error TS2717: Subsequent property declarations must have the same type. Property 'big' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3123,13): error TS2717: Subsequent property declarations must have the same type. Property 'blockquote' must be of type 'DetailedHTMLProps<BlockquoteHTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<BlockquoteHTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3124,13): error TS2717: Subsequent property declarations must have the same type. Property 'body' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLBodyElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLBodyElement>'. ../../../../../node_modules/@types/react/index.d.ts(3125,13): error TS2717: Subsequent property declarations must have the same type. Property 'br' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLBRElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLBRElement>'. ../../../../../node_modules/@types/react/index.d.ts(3126,13): error TS2717: Subsequent property declarations must have the same type. Property 'button' must be of type 'DetailedHTMLProps<ButtonHTMLAttributes, HTMLButtonElement>', but here has type 'DetailedHTMLProps<ButtonHTMLAttributes, HTMLButtonElement>'. ../../../../../node_modules/@types/react/index.d.ts(3127,13): error TS2717: Subsequent property declarations must have the same type. Property 'canvas' must be of type 'DetailedHTMLProps<CanvasHTMLAttributes, HTMLCanvasElement>', but here has type 'DetailedHTMLProps<CanvasHTMLAttributes, HTMLCanvasElement>'. ../../../../../node_modules/@types/react/index.d.ts(3128,13): error TS2717: Subsequent property declarations must have the same type. Property 'caption' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3129,13): error TS2717: Subsequent property declarations must have the same type. Property 'cite' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3130,13): error TS2717: Subsequent property declarations must have the same type. Property 'code' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3131,13): error TS2717: Subsequent property declarations must have the same type. Property 'col' must be of type 'DetailedHTMLProps<ColHTMLAttributes, HTMLTableColElement>', but here has type 'DetailedHTMLProps<ColHTMLAttributes, HTMLTableColElement>'. ../../../../../node_modules/@types/react/index.d.ts(3132,13): error TS2717: Subsequent property declarations must have the same type. Property 'colgroup' must be of type 'DetailedHTMLProps<ColgroupHTMLAttributes, HTMLTableColElement>', but here has type 'DetailedHTMLProps<ColgroupHTMLAttributes, HTMLTableColElement>'. ../../../../../node_modules/@types/react/index.d.ts(3133,13): error TS2717: Subsequent property declarations must have the same type. Property 'data' must be of type 'DetailedHTMLProps<DataHTMLAttributes, HTMLDataElement>', but here has type 'DetailedHTMLProps<DataHTMLAttributes, HTMLDataElement>'. ../../../../../node_modules/@types/react/index.d.ts(3134,13): error TS2717: Subsequent property declarations must have the same type. Property 'datalist' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLDataListElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLDataListElement>'. @../../../../../node_modules/@types/react/index.d.ts(3135,13): error TS2717: Subsequent property declarations must have the same type. Property 'dd' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3136,13): error TS2717: Subsequent property declarations must have the same type. Property 'del' must be of type 'DetailedHTMLProps<DelHTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<DelHTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3137,13): error TS2717: Subsequent property declarations must have the same type. Property 'details' must be of type 'DetailedHTMLProps<DetailsHTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<DetailsHTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3138,13): error TS2717: Subsequent property declarations must have the same type. Property 'dfn' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3139,13): error TS2717: Subsequent property declarations must have the same type. Property 'dialog' must be of type 'DetailedHTMLProps<DialogHTMLAttributes, HTMLDialogElement>', but here has type 'DetailedHTMLProps<DialogHTMLAttributes, HTMLDialogElement>'. ../../../../../node_modules/@types/react/index.d.ts(3140,13): error TS2717: Subsequent property declarations must have the same type. Property 'div' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLDivElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLDivElement>'. ../../../../../node_modules/@types/react/index.d.ts(3141,13): error TS2717: Subsequent property declarations must have the same type. Property 'dl' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLDListElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLDListElement>'. ../../../../../node_modules/@types/react/index.d.ts(3142,13): error TS2717: Subsequent property declarations must have the same type. Property 'dt' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3143,13): error TS2717: Subsequent property declarations must have the same type. Property 'em' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3144,13): error TS2717: Subsequent property declarations must have the same type. Property 'embed' must be of type 'DetailedHTMLProps<EmbedHTMLAttributes, HTMLEmbedElement>', but here has type 'DetailedHTMLProps<EmbedHTMLAttributes, HTMLEmbedElement>'. ../../../../../node_modules/@types/react/index.d.ts(3145,13): error TS2717: Subsequent property declarations must have the same type. Property 'fieldset' must be of type 'DetailedHTMLProps<FieldsetHTMLAttributes, HTMLFieldSetElement>', but here has type 'DetailedHTMLProps<FieldsetHTMLAttributes, HTMLFieldSetElement>'. ../../../../../node_modules/@types/react/index.d.ts(3146,13): error TS2717: Subsequent property declarations must have the same type. Property 'figcaption' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3147,13): error TS2717: Subsequent property declarations must have the same type. Property 'figure' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3148,13): error TS2717: Subsequent property declarations must have the same type. Property 'footer' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3149,13): error TS2717: Subsequent property declarations must have the same type. Property 'form' must be of type 'DetailedHTMLProps<FormHTMLAttributes, HTMLFormElement>', but here has type 'DetailedHTMLProps<FormHTMLAttributes, HTMLFormElement>'. ../../../../../node_modules/@types/react/index.d.ts(3150,13): error TS2717: Subsequent property declarations must have the same type. Property 'h1' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadingElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadingElement>'. ../../../../../node_modules/@types/react/index.d.ts(3151,13): error TS2717: Subsequent property declarations must have the same type. Property 'h2' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadingElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadingElement>'. ../../../../../node_modules/@types/react/index.d.ts(3152,13): error TS2717: Subsequent property declarations must have the same type. Property 'h3' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadingElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadingElement>'. ../../../../../node_modules/@types/react/index.d.ts(3153,13): error TS2717: Subsequent property declarations must have the same type. Property 'h4' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadingElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadingElement>'. ../../../../../node_modules/@types/react/index.d.ts(3154,13): error TS2717: Subsequent property declarations must have the same type. Property 'h5' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadingElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadingElement>'. ../../../../../node_modules/@types/react/index.d.ts(3155,13): error TS2717: Subsequent property declarations must have the same type. Property 'h6' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadingElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadingElement>'. ../../../../../node_modules/@types/react/index.d.ts(3156,13): error TS2717: Subsequent property declarations must have the same type. Property 'head' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLHeadElement>'. ../../../../../node_modules/@types/react/index.d.ts(3157,13): error TS2717: Subsequent property declarations must have the same type. Property 'header' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3158,13): error TS2717: Subsequent property declarations must have the same type. Property 'hgroup' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3159,13): error TS2717: Subsequent property declarations must have the same type. Property 'hr' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLHRElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLHRElement>'. ../../../../../node_modules/@types/react/index.d.ts(3160,13): error TS2717: Subsequent property declarations must have the same type. Property 'html' must be of type 'DetailedHTMLProps<HtmlHTMLAttributes, HTMLHtmlElement>', but here has type 'DetailedHTMLProps<HtmlHTMLAttributes, HTMLHtmlElement>'. ../../../../../node_modules/@types/react/index.d.ts(3161,13): error TS2717: Subsequent property declarations must have the same type. Property 'i' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3162,13): error TS2717: Subsequent property declarations must have the same type. Property 'iframe' must be of type 'DetailedHTMLProps<IframeHTMLAttributes, HTMLIFrameElement>', but here has type 'DetailedHTMLProps<IframeHTMLAttributes, HTMLIFrameElement>'. ../../../../../node_modules/@types/react/index.d.ts(3163,13): error TS2717: Subsequent property declarations must have the same type. Property 'img' must be of type 'DetailedHTMLProps<ImgHTMLAttributes, HTMLImageElement>', but here has type 'DetailedHTMLProps<ImgHTMLAttributes, HTMLImageElement>'. ../../../../../node_modules/@types/react/index.d.ts(3164,13): error TS2717: Subsequent property declarations must have the same type. Property 'input' must be of type 'DetailedHTMLProps<InputHTMLAttributes, HTMLInputElement>', but here has type 'DetailedHTMLProps<InputHTMLAttributes, HTMLInputElement>'. ../../../../../node_modules/@types/react/index.d.ts(3165,13): error TS2717: Subsequent property declarations must have the same type. Property 'ins' must be of type 'DetailedHTMLProps<InsHTMLAttributes, HTMLModElement>', but here has type 'DetailedHTMLProps<InsHTMLAttributes, HTMLModElement>'. ../../../../../node_modules/@types/react/index.d.ts(3166,13): error TS2717: Subsequent property declarations must have the same type. Property 'kbd' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3167,13): error TS2717: Subsequent property declarations must have the same type. Property 'keygen' must be of type 'DetailedHTMLProps<KeygenHTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<KeygenHTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3168,13): error TS2717: Subsequent property declarations must have the same type. Property 'label' must be of type 'DetailedHTMLProps<LabelHTMLAttributes, HTMLLabelElement>', but here has type 'DetailedHTMLProps<LabelHTMLAttributes, HTMLLabelElement>'. ../../../../../node_modules/@types/react/index.d.ts(3169,13): error TS2717: Subsequent property declarations must have the same type. Property 'legend' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLLegendElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLLegendElement>'. ../../../../../node_modules/@types/react/index.d.ts(3170,13): error TS2717: Subsequent property declarations must have the same type. Property 'li' must be of type 'DetailedHTMLProps<LiHTMLAttributes, HTMLLIElement>', but here has type 'DetailedHTMLProps<LiHTMLAttributes, HTMLLIElement>'. ../../../../../node_modules/@types/react/index.d.ts(3171,13): error TS2717: Subsequent property declarations must have the same type. Property 'link' must be of type 'DetailedHTMLProps<LinkHTMLAttributes, HTMLLinkElement>', but here has type 'DetailedHTMLProps<LinkHTMLAttributes, HTMLLinkElement>'. ../../../../../node_modules/@types/react/index.d.ts(3172,13): error TS2717: Subsequent property declarations must have the same type. Property 'main' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3173,13): error TS2717: Subsequent property declarations must have the same type. Property 'map' must be of type 'DetailedHTMLProps<MapHTMLAttributes, HTMLMapElement>', but here has type 'DetailedHTMLProps<MapHTMLAttributes, HTMLMapElement>'. ../../../../../node_modules/@types/react/index.d.ts(3174,13): error TS2717: Subsequent property declarations must have the same type. Property 'mark' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3175,13): error TS2717: Subsequent property declarations must have the same type. Property 'menu' must be of type 'DetailedHTMLProps<MenuHTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<MenuHTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3176,13): error TS2717: Subsequent property declarations must have the same type. Property 'menuitem' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3177,13): error TS2717: Subsequent property declarations must have the same type. Property 'meta' must be of type 'DetailedHTMLProps<MetaHTMLAttributes, HTMLMetaElement>', but here has type 'DetailedHTMLProps<MetaHTMLAttributes, HTMLMetaElement>'. ../../../../../node_modules/@types/react/index.d.ts(3178,13): error TS2717: Subsequent property declarations must have the same type. Property 'meter' must be of type 'DetailedHTMLProps<MeterHTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<MeterHTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3179,13): error TS2717: Subsequent property declarations must have the same type. Property 'nav' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3180,13): error TS2717: Subsequent property declarations must have the same type. Property 'noindex' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3181,13): error TS2717: Subsequent property declarations must have the same type. Property 'noscript' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3182,13): error TS2717: Subsequent property declarations must have the same type. Property 'object' must be of type 'DetailedHTMLProps<ObjectHTMLAttributes, HTMLObjectElement>', but here has type 'DetailedHTMLProps<ObjectHTMLAttributes, HTMLObjectElement>'. ../../../../../node_modules/@types/react/index.d.ts(3183,13): error TS2717: Subsequent property declarations must have the same type. Property 'ol' must be of type 'DetailedHTMLProps<OlHTMLAttributes, HTMLOListElement>', but here has type 'DetailedHTMLProps<OlHTMLAttributes, HTMLOListElement>'. ../../../../../node_modules/@types/react/index.d.ts(3184,13): error TS2717: Subsequent property declarations must have the same type. Property 'optgroup' must be of type 'DetailedHTMLProps<OptgroupHTMLAttributes, HTMLOptGroupElement>', but here has type 'DetailedHTMLProps<OptgroupHTMLAttributes, HTMLOptGroupElement>'. ../../../../../node_modules/@types/react/index.d.ts(3185,13): error TS2717: Subsequent property declarations must have the same type. Property 'option' must be of type 'DetailedHTMLProps<OptionHTMLAttributes, HTMLOptionElement>', but here has type 'DetailedHTMLProps<OptionHTMLAttributes, HTMLOptionElement>'. ../../../../../node_modules/@types/react/index.d.ts(3186,13): error TS2717: Subsequent property declarations must have the same type. Property 'output' must be of type 'DetailedHTMLProps<OutputHTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<OutputHTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3187,13): error TS2717: Subsequent property declarations must have the same type. Property 'p' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLParagraphElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLParagraphElement>'. ../../../../../node_modules/@types/react/index.d.ts(3188,13): error TS2717: Subsequent property declarations must have the same type. Property 'param' must be of type 'DetailedHTMLProps<ParamHTMLAttributes, HTMLParamElement>', but here has type 'DetailedHTMLProps<ParamHTMLAttributes, HTMLParamElement>'. ../../../../../node_modules/@types/react/index.d.ts(3189,13): error TS2717: Subsequent property declarations must have the same type. Property 'picture' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3190,13): error TS2717: Subsequent property declarations must have the same type. Property 'pre' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLPreElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLPreElement>'. ../../../../../node_modules/@types/react/index.d.ts(3191,13): error TS2717: Subsequent property declarations must have the same type. Property 'progress' must be of type 'DetailedHTMLProps<ProgressHTMLAttributes, HTMLProgressElement>', but here has type 'DetailedHTMLProps<ProgressHTMLAttributes, HTMLProgressElement>'. ../../../../../node_modules/@types/react/index.d.ts(3192,13): error TS2717: Subsequent property declarations must have the same type. Property 'q' must be of type 'DetailedHTMLProps<QuoteHTMLAttributes, HTMLQuoteElement>', but here has type 'DetailedHTMLProps<QuoteHTMLAttributes, HTMLQuoteElement>'. ../../../../../node_modules/@types/react/index.d.ts(3193,13): error TS2717: Subsequent property declarations must have the same type. Property 'rp' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3194,13): error TS2717: Subsequent property declarations must have the same type. Property 'rt' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3195,13): error TS2717: Subsequent property declarations must have the same type. Property 'ruby' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3196,13): error TS2717: Subsequent property declarations must have the same type. Property 's' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3197,13): error TS2717: Subsequent property declarations must have the same type. Property 'samp' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3198,13): error TS2717: Subsequent property declarations must have the same type. Property 'slot' must be of type 'DetailedHTMLProps<SlotHTMLAttributes, HTMLSlotElement>', but here has type 'DetailedHTMLProps<SlotHTMLAttributes, HTMLSlotElement>'. ../../../../../node_modules/@types/react/index.d.ts(3199,13): error TS2717: Subsequent property declarations must have the same type. Property 'script' must be of type 'DetailedHTMLProps<ScriptHTMLAttributes, HTMLScriptElement>', but here has type 'DetailedHTMLProps<ScriptHTMLAttributes, HTMLScriptElement>'. ../../../../../node_modules/@types/react/index.d.ts(3200,13): error TS2717: Subsequent property declarations must have the same type. Property 'section' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3201,13): error TS2717: Subsequent property declarations must have the same type. Property 'select' must be of type 'DetailedHTMLProps<SelectHTMLAttributes, HTMLSelectElement>', but here has type 'DetailedHTMLProps<SelectHTMLAttributes, HTMLSelectElement>'. ../../../../../node_modules/@types/react/index.d.ts(3202,13): error TS2717: Subsequent property declarations must have the same type. Property 'small' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3203,13): error TS2717: Subsequent property declarations must have the same type. Property 'source' must be of type 'DetailedHTMLProps<SourceHTMLAttributes, HTMLSourceElement>', but here has type 'DetailedHTMLProps<SourceHTMLAttributes, HTMLSourceElement>'. ../../../../../node_modules/@types/react/index.d.ts(3204,13): error TS2717: Subsequent property declarations must have the same type. Property 'span' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLSpanElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLSpanElement>'. ../../../../../node_modules/@types/react/index.d.ts(3205,13): error TS2717: Subsequent property declarations must have the same type. Property 'strong' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3206,13): error TS2717: Subsequent property declarations must have the same type. Property 'style' must be of type 'DetailedHTMLProps<StyleHTMLAttributes, HTMLStyleElement>', but here has type 'DetailedHTMLProps<StyleHTMLAttributes, HTMLStyleElement>'. ../../../../../node_modules/@types/react/index.d.ts(3207,13): error TS2717: Subsequent property declarations must have the same type. Property 'sub' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3208,13): error TS2717: Subsequent property declarations must have the same type. Property 'summary' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3209,13): error TS2717: Subsequent property declarations must have the same type. Property 'sup' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3210,13): error TS2717: Subsequent property declarations must have the same type. Property 'table' must be of type 'DetailedHTMLProps<TableHTMLAttributes, HTMLTableElement>', but here has type 'DetailedHTMLProps<TableHTMLAttributes, HTMLTableElement>'. ../../../../../node_modules/@types/react/index.d.ts(3211,13): error TS2717: Subsequent property declarations must have the same type. Property 'template' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLTemplateElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLTemplateElement>'. ../../../../../node_modules/@types/react/index.d.ts(3212,13): error TS2717: Subsequent property declarations must have the same type. Property 'tbody' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLTableSectionElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLTableSectionElement>'. ../../../../../node_modules/@types/react/index.d.ts(3213,13): error TS2717: Subsequent property declarations must have the same type. Property 'td' must be of type 'DetailedHTMLProps<TdHTMLAttributes, HTMLTableDataCellElement>', but here has type 'DetailedHTMLProps<TdHTMLAttributes, HTMLTableDataCellElement>'. ../../../../../node_modules/@types/react/index.d.ts(3214,13): error TS2717: Subsequent property declarations must have the same type. Property 'textarea' must be of type 'DetailedHTMLProps<TextareaHTMLAttributes, HTMLTextAreaElement>', but here has type 'DetailedHTMLProps<TextareaHTMLAttributes, HTMLTextAreaElement>'. ../../../../../node_modules/@types/react/index.d.ts(3215,13): error TS2717: Subsequent property declarations must have the same type. Property 'tfoot' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLTableSectionElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLTableSectionElement>'. ../../../../../node_modules/@types/react/index.d.ts(3216,13): error TS2717: Subsequent property declarations must have the same type. Property 'th' must be of type 'DetailedHTMLProps<ThHTMLAttributes, HTMLTableHeaderCellElement>', but here has type 'DetailedHTMLProps<ThHTMLAttributes, HTMLTableHeaderCellElement>'. ../../../../../node_modules/@types/react/index.d.ts(3217,13): error TS2717: Subsequent property declarations must have the same type. Property 'thead' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLTableSectionElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLTableSectionElement>'. ../../../../../node_modules/@types/react/index.d.ts(3218,13): error TS2717: Subsequent property declarations must have the same type. Property 'time' must be of type 'DetailedHTMLProps<TimeHTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<TimeHTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3219,13): error TS2717: Subsequent property declarations must have the same type. Property 'title' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLTitleElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLTitleElement>'. ../../../../../node_modules/@types/react/index.d.ts(3220,13): error TS2717: Subsequent property declarations must have the same type. Property 'tr' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLTableRowElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLTableRowElement>'. ../../../../../node_modules/@types/react/index.d.ts(3221,13): error TS2717: Subsequent property declarations must have the same type. Property 'track' must be of type 'DetailedHTMLProps<TrackHTMLAttributes, HTMLTrackElement>', but here has type 'DetailedHTMLProps<TrackHTMLAttributes, HTMLTrackElement>'. ../../../../../node_modules/@types/react/index.d.ts(3222,13): error TS2717: Subsequent property declarations must have the same type. Property 'u' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3223,13): error TS2717: Subsequent property declarations must have the same type. Property 'ul' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLUListElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLUListElement>'. ../../../../../node_modules/@types/react/index.d.ts(3224,13): error TS2717: Subsequent property declarations must have the same type. Property '"var"' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3225,13): error TS2717: Subsequent property declarations must have the same type. Property 'video' must be of type 'DetailedHTMLProps<VideoHTMLAttributes, HTMLVideoElement>', but here has type 'DetailedHTMLProps<VideoHTMLAttributes, HTMLVideoElement>'. ../../../../../node_modules/@types/react/index.d.ts(3226,13): error TS2717: Subsequent property declarations must have the same type. Property 'wbr' must be of type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes, HTMLElement>'. ../../../../../node_modules/@types/react/index.d.ts(3227,13): error TS2717: Subsequent property declarations must have the same type. Property 'webview' must be of type 'DetailedHTMLProps<WebViewHTMLAttributes, HTMLWebViewElement>', but here has type 'DetailedHTMLProps<WebViewHTMLAttributes, HTMLWebViewElement>'. ../../../../../node_modules/@types/react/index.d.ts(3230,13): error TS2717: Subsequent property declarations must have the same type. Property 'svg' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3232,13): error TS2717: Subsequent property declarations must have the same type. Property 'animate' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3233,13): error TS2717: Subsequent property declarations must have the same type. Property 'animateMotion' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3234,13): error TS2717: Subsequent property declarations must have the same type. Property 'animateTransform' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3235,13): error TS2717: Subsequent property declarations must have the same type. Property 'circle' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3236,13): error TS2717: Subsequent property declarations must have the same type. Property 'clipPath' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3237,13): error TS2717: Subsequent property declarations must have the same type. Property 'defs' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3238,13): error TS2717: Subsequent property declarations must have the same type. Property 'desc' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3239,13): error TS2717: Subsequent property declarations must have the same type. Property 'ellipse' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3240,13): error TS2717: Subsequent property declarations must have the same type. Property 'feBlend' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3241,13): error TS2717: Subsequent property declarations must have the same type. Property 'feColorMatrix' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3242,13): error TS2717: Subsequent property declarations must have the same type. Property 'feComponentTransfer' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3243,13): error TS2717: Subsequent property declarations must have the same type. Property 'feComposite' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3244,13): error TS2717: Subsequent property declarations must have the same type. Property 'feConvolveMatrix' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3245,13): error TS2717: Subsequent property declarations must have the same type. Property 'feDiffuseLighting' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3246,13): error TS2717: Subsequent property declarations must have the same type. Property 'feDisplacementMap' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3247,13): error TS2717: Subsequent property declarations must have the same type. Property 'feDistantLight' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3248,13): error TS2717: Subsequent property declarations must have the same type. Property 'feDropShadow' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3249,13): error TS2717: Subsequent property declarations must have the same type. Property 'feFlood' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3250,13): error TS2717: Subsequent property declarations must have the same type. Property 'feFuncA' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3251,13): error TS2717: Subsequent property declarations must have the same type. Property 'feFuncB' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3252,13): error TS2717: Subsequent property declarations must have the same type. Property 'feFuncG' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3253,13): error TS2717: Subsequent property declarations must have the same type. Property 'feFuncR' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3254,13): error TS2717: Subsequent property declarations must have the same type. Property 'feGaussianBlur' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3255,13): error TS2717: Subsequent property declarations must have the same type. Property 'feImage' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3256,13): error TS2717: Subsequent property declarations must have the same type. Property 'feMerge' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3257,13): error TS2717: Subsequent property declarations must have the same type. Property 'feMergeNode' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3258,13): error TS2717: Subsequent property declarations must have the same type. Property 'feMorphology' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3259,13): error TS2717: Subsequent property declarations must have the same type. Property 'feOffset' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3260,13): error TS2717: Subsequent property declarations must have the same type. Property 'fePointLight' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3261,13): error TS2717: Subsequent property declarations must have the same type. Property 'feSpecularLighting' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3262,13): error TS2717: Subsequent property declarations must have the same type. Property 'feSpotLight' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3263,13): error TS2717: Subsequent property declarations must have the same type. Property 'feTile' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3264,13): error TS2717: Subsequent property declarations must have the same type. Property 'feTurbulence' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3265,13): error TS2717: Subsequent property declarations must have the same type. Property 'filter' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3266,13): error TS2717: Subsequent property declarations must have the same type. Property 'foreignObject' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3267,13): error TS2717: Subsequent property declarations must have the same type. Property 'g' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3268,13): error TS2717: Subsequent property declarations must have the same type. Property 'image' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3269,13): error TS2717: Subsequent property declarations must have the same type. Property 'line' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3270,13): error TS2717: Subsequent property declarations must have the same type. Property 'linearGradient' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3271,13): error TS2717: Subsequent property declarations must have the same type. Property 'marker' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3272,13): error TS2717: Subsequent property declarations must have the same type. Property 'mask' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3273,13): error TS2717: Subsequent property declarations must have the same type. Property 'metadata' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3274,13): error TS2717: Subsequent property declarations must have the same type. Property 'mpath' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3275,13): error TS2717: Subsequent property declarations must have the same type. Property 'path' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3276,13): error TS2717: Subsequent property declarations must have the same type. Property 'pattern' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3277,13): error TS2717: Subsequent property declarations must have the same type. Property 'polygon' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3278,13): error TS2717: Subsequent property declarations must have the same type. Property 'polyline' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3279,13): error TS2717: Subsequent property declarations must have the same type. Property 'radialGradient' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3280,13): error TS2717: Subsequent property declarations must have the same type. Property 'rect' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3281,13): error TS2717: Subsequent property declarations must have the same type. Property 'stop' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3282,13): error TS2717: Subsequent property declarations must have the same type. Property 'switch' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3283,13): error TS2717: Subsequent property declarations must have the same type. Property 'symbol' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3284,13): error TS2717: Subsequent property declarations must have the same type. Property 'text' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3285,13): error TS2717: Subsequent property declarations must have the same type. Property 'textPath' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3286,13): error TS2717: Subsequent property declarations must have the same type. Property 'tspan' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3287,13): error TS2717: Subsequent property declarations must have the same type. Property 'use' must be of type 'SVGProps', but here has type 'SVGProps'. ../../../../../node_modules/@types/react/index.d.ts(3288,13): error TS2717: Subsequent property declarations must have the same type. Property 'view' must be of type 'SVGProps', but here has type 'SVGProps'. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run build stderr: error Command failed with exit code 2.

lerna ERR! yarn run build exited 2 in '@metaplex/cli' lerna WARN complete Waiting for 3 child processes to exit. CTRL-C to exit immediately. error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Followed your steps getting same error @carthanas @carthanas

cultureofwomen commented 2 years ago

It looks like a problem with the latest version of node not being compatible with metaplex. I am on the macOS Big Sur. I had to downgrade node. I did this:

nvm install 14.17.0
nvm use 14.17.0
git clone https://github.com/metaplex-foundation/metaplex.git
cd metaplex
git checkout bf1bc27098ab9a8b5fda4feef2209f5ccfbc8207
npm install --global yarn
yarn build
yarn install
yarn bootstrap
lherna1371 commented 2 years ago

had issues with canvas while running 'yarn install' on the mac, apple chip. had to install from source:

https://github.com/Automattic/node-canvas/wiki/Installation%3A-Mac-OS-X

ran: brew install pkg-config cairo pango libpng jpeg giflib librsvg

sime-time commented 2 years ago

I was able to work around it by brew installing canvas: brew install pkg-config cairo pango libpng jpeg giflib librsvg

this worked for m1 mac thank you!

fivelions8 commented 2 years ago

Really not sure what to do, tried all the methods above :/

$ lerna run build lerna notice cli v3.22.1 lerna info versioning independent lerna info Executing command in 4 packages: "yarn run build" lerna ERR! yarn run build exited 1 in 'candy-machine-mint' lerna ERR! yarn run build stdout: $ react-scripts build Creating an optimized production build... info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run build stderr: Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at module.exports (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\util\createHash.js:135:53) at NormalModule._initBuildHash (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:417:16) at handleParseError (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:471:10) at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:503:5 at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:358:12 at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:373:3 at iterateNormalLoaders (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:214:10) at iterateNormalLoaders (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:221:10) at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:236:3 at runSyncOrAsync (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:130:11) at iterateNormalLoaders (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:232:2) at Array. (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:205:4) at Storage.finished (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16) at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9 C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\react-scripts\scripts\build.js:19 throw err; ^

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at module.exports (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\util\createHash.js:135:53) at NormalModule._initBuildHash (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:417:16) at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:452:10 at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:323:13 at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:367:11 at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:233:18 at context.callback (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:111:13) at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\react-scripts\node_modules\babel-loader\lib\index.js:59:103 { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' }

Node.js v17.0.1 error Command failed with exit code 1.

lerna ERR! yarn run build exited 1 in 'candy-machine-mint' lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately. error Command failed with exit code 1.

lherna1371 commented 2 years ago

Really not sure what to do, tried all the methods above :/

$ lerna run build lerna notice cli v3.22.1 lerna info versioning independent lerna info Executing command in 4 packages: "yarn run build" lerna ERR! yarn run build exited 1 in 'candy-machine-mint' lerna ERR! yarn run build stdout: $ react-scripts build Creating an optimized production build... info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run build stderr: Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at module.exports (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\util\createHash.js:135:53) at NormalModule._initBuildHash (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:417:16) at handleParseError (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:471:10) at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:503:5 at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:358:12 at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:373:3 at iterateNormalLoaders (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:214:10) at iterateNormalLoaders (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:221:10) at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:236:3 at runSyncOrAsync (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:130:11) at iterateNormalLoaders (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:232:2) at Array. (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:205:4) at Storage.finished (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16) at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9 C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\react-scripts\scripts\build.js:19 throw err; ^

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at module.exports (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\util\createHash.js:135:53) at NormalModule._initBuildHash (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:417:16) at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:452:10 at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\webpack\lib\NormalModule.js:323:13 at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:367:11 at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:233:18 at context.callback (C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\loader-runner\lib\LoaderRunner.js:111:13) at C:\Users\ahmed\Desktop\Solana\metaplex-master\js\node_modules\react-scripts\node_modules\babel-loader\lib\index.js:59:103 { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' }

Node.js v17.0.1 error Command failed with exit code 1.

lerna ERR! yarn run build exited 1 in 'candy-machine-mint' lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately. error Command failed with exit code 1.

You're on Node 17? Try an older version.. 16, even 14. I ended up getting everything to work with Node 14.

fivelions8 commented 2 years ago

Initially i was using 17, then i tried downgrading to 16 - but a bit lost how to downgrade to 15 or 14

lherna1371 commented 2 years ago

Initially i was using 17, then i tried downgrading to 16 - but a bit lost how to downgrade to 15 or 14

If you have Node version manager, NVM, you can set the node version to use. Not sure what system youre running but you should be able to find quite a few resources via Google on how to install NVM for your system and install/set the node version using NVM.

fivelions8 commented 2 years ago

@lherna1371 would love to have your advice, I installed NVM and in the terminal set to be 16.13 for example.

However the code still appears to be using 17.0

image

mnedelko commented 2 years ago

Also very interested in updates on the above :)

mnedelko commented 2 years ago

Solved my issue by running on Node v14.

KlausMillenial commented 2 years ago

$ lerna run build lerna notice cli v3.22.1 lerna info versioning independent lerna info Executing command in 5 packages: "yarn run build" lerna ERR! yarn run build exited 2 in '@metaplex/cli' lerna ERR! yarn run build stdout: $ tsc -p ./src error TS2688: Cannot find type definition file for 'jsdom'. The file is in the program because: Entry point for implicit type library 'jsdom' error TS2688: Cannot find type definition file for 'parse5'. The file is in the program because: Entry point for implicit type library 'parse5' error TS2688: Cannot find type definition file for 'tough-cookie'. The file is in the program because: Entry point for implicit type library 'tough-cookie' error TS2688: Cannot find type definition file for 'ws'. The file is in the program because: Entry point for implicit type library 'ws' info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run build stderr: error Command failed with exit code 2.

lerna ERR! yarn run build exited 2 in '@metaplex/cli' lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately. error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. klaris@MBP-de-Klaris js %

Hello, I've tried all methods listed above but I really can't find the right solution.. please help me I really want to solve this yarn build problem

davidabuu commented 2 years ago

Pls how do i relove this, am using an older version of node js Screenshot (729)

aeae-max commented 2 years ago

work for me delete node_modules yarn.lock

$ nvm install nvm install v16.13.1

cd /js yarn cache clean --all

cd /js yarn install && yarn bootstrap

yarn build

work

Khushhal23 commented 2 years ago

Guys I also had the same error. It's because of the nodejs version. Uninstall the current one and use 16.13.1. It'll work

fernandotsubota commented 2 years ago

I solved this problem uninstalling node and yarn, and installing again node 16.13.1 and yarn, but using the msi file: https://github.com/yarnpkg/yarn/releases/download/v1.22.4/yarn-1.22.4.msi . Because i think that when you install yarn using npm it also install node 17, and it was causing the problem.

github-actions[bot] commented 2 years ago

This Issue has received no activity for 30 days. We will close it in 2 days, please reopen if you are still experiencing this issue.