trying out moving globalcontext to the root layout
Hmm, I’m still definitely having issues. I might need to try starting a fresh project and syncing to see if that helps (maybe i’m stuck in a weird state?).
Maybe this is some evidence with what’s wrong with my build? When I run npm install in my project root I see all these dependency confilcts related to ant-design:
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: react-sortable-hoc@2.0.0
npm WARN Found: react@18.2.0
npm WARN node_modules/react
npm WARN react@"18.2.0" from the root project
npm WARN 117 more (@ant-design/cssinjs, @ant-design/icons, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.3.0 || ^17.0.0" from react-sortable-hoc@2.0.0
npm WARN node_modules/@ant-design/pro-table/node_modules/react-sortable-hoc
npm WARN react-sortable-hoc@"^2.0.0" from @ant-design/pro-table@3.6.1
npm WARN node_modules/@ant-design/pro-table
npm WARN
npm WARN Conflicting peer dependency: react@17.0.2
npm WARN node_modules/react
npm WARN peer react@"^16.3.0 || ^17.0.0" from react-sortable-hoc@2.0.0
npm WARN node_modules/@ant-design/pro-table/node_modules/react-sortable-hoc
npm WARN react-sortable-hoc@"^2.0.0" from @ant-design/pro-table@3.6.1
npm WARN node_modules/@ant-design/pro-table
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: react-sortable-hoc@2.0.0
npm WARN Found: react-dom@18.2.0
npm WARN node_modules/react-dom
npm WARN react-dom@"18.2.0" from the root project
npm WARN 61 more (@ant-design/cssinjs, @ant-design/icons, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react-dom@"^16.3.0 || ^17.0.0" from react-sortable-hoc@2.0.0
npm WARN node_modules/@ant-design/pro-table/node_modules/react-sortable-hoc
npm WARN react-sortable-hoc@"^2.0.0" from @ant-design/pro-table@3.6.1
npm WARN node_modules/@ant-design/pro-table
npm WARN
npm WARN Conflicting peer dependency: react-dom@17.0.2
npm WARN node_modules/react-dom
npm WARN peer react-dom@"^16.3.0 || ^17.0.0" from react-sortable-hoc@2.0.0
npm WARN node_modules/@ant-design/pro-table/node_modules/react-sortable-hoc
npm WARN react-sortable-hoc@"^2.0.0" from @ant-design/pro-table@3.6.1
npm WARN node_modules/@ant-design/pro-table
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: react-sortable-hoc@2.0.0
npm WARN Found: react@18.2.0
npm WARN node_modules/react
npm WARN react@"18.2.0" from the root project
npm WARN 117 more (@ant-design/cssinjs, @ant-design/icons, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.3.0 || ^17.0.0" from react-sortable-hoc@2.0.0
npm WARN node_modules/@ant-design/pro-utils/node_modules/react-sortable-hoc
npm WARN react-sortable-hoc@"^2.0.0" from @ant-design/pro-utils@2.7.2
npm WARN node_modules/@ant-design/pro-utils
npm WARN
npm WARN Conflicting peer dependency: react@17.0.2
npm WARN node_modules/react
npm WARN peer react@"^16.3.0 || ^17.0.0" from react-sortable-hoc@2.0.0
npm WARN node_modules/@ant-design/pro-utils/node_modules/react-sortable-hoc
npm WARN react-sortable-hoc@"^2.0.0" from @ant-design/pro-utils@2.7.2
npm WARN node_modules/@ant-design/pro-utils
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: react-sortable-hoc@2.0.0
npm WARN Found: react-dom@18.2.0
npm WARN node_modules/react-dom
npm WARN react-dom@"18.2.0" from the root project
npm WARN 61 more (@ant-design/cssinjs, @ant-design/icons, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react-dom@"^16.3.0 || ^17.0.0" from react-sortable-hoc@2.0.0
npm WARN node_modules/@ant-design/pro-utils/node_modules/react-sortable-hoc
npm WARN react-sortable-hoc@"^2.0.0" from @ant-design/pro-utils@2.7.2
npm WARN node_modules/@ant-design/pro-utils
npm WARN
npm WARN Conflicting peer dependency: react-dom@17.0.2
npm WARN node_modules/react-dom
npm WARN peer react-dom@"^16.3.0 || ^17.0.0" from react-sortable-hoc@2.0.0
npm WARN node_modules/@ant-design/pro-utils/node_modules/react-sortable-hoc
npm WARN react-sortable-hoc@"^2.0.0" from @ant-design/pro-utils@2.7.2
npm WARN node_modules/@ant-design/pro-utils