Closed irajneeshgupta closed 1 year ago
Can you add
"resolutions": {
"@types/react-is": "18.2.0"
},
To your package.json and run yarn again?
It is due to a release made two weeks ago which broke some things. https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-is I was hoping it would automatically be fixed, but nothing yet though.
Describe the Bug
yarn build yarn run v1.22.19 $ graphcommerce codegen-config && mesh build && graphql-codegen && next build && next-sitemap ๐ก ๐ธ๏ธ Mesh Cleaning existing artifacts ๐ก ๐ธ๏ธ Mesh Reading the configuration ๐ก ๐ธ๏ธ Mesh Generating the unified schema ๐ก ๐ธ๏ธ Mesh Generating artifacts ๐ก ๐ธ๏ธ Mesh Generating index file in TypeScript ๐ก ๐ธ๏ธ Mesh Writing index.ts for CJS to the disk. ๐ก ๐ธ๏ธ Mesh Cleanup ๐ก ๐ธ๏ธ Mesh Done! => /Users/raineeshgupta/Documents/docker/my-project/.mesh โ Parse Configuration โ Parse Configuration โ Generate outputs warn - You have enabled experimental features (enableUndici, scrollRestoration) in next.config.js. warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
info - Skipping linting info - Checking validity of types ..Failed to compile.
./node_modules/@graphcommerce/next-ui/Navigation/components/NavigationProvider.tsx:45:7 Type error: Type 'NonNullable<NavigationNode | ReactElement<any, string | JSXElementConstructor>>[]' is not assignable to type 'NavigationNode[]'.
Type 'NonNullable<NavigationNode | ReactElement<any, string | JSXElementConstructor>>' is not assignable to type 'NavigationNode'.
Type 'ReactElement<any, string | JSXElementConstructor>' is not assignable to type 'NavigationNode'.
Type 'ReactElement<any, string | JSXElementConstructor>' is not assignable to type 'NavigationNodeButton'.
Property 'id' is missing in type 'ReactElement<any, string | JSXElementConstructor>' but required in type 'NavigationNodeBase'.
43 | animating, 44 | closing,
Expected Behavior
It should build with errors
To Reproduce
Pulled fresh project from git. Updated graphcommerce.config.js as required. Using Magento 2.4.6 yarn install yarn codegen yarn build failed at types check.