You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a docker file and including the packages it will error out on the dependency of zod.
This seems to be due to the recent changes in version 11.10.2 where the dependency has been updated to version 4.x.x and seems to not work/conflict with the version of zod that is being used in the collaborative editing package (version "^3.24.4").
To Reproduce
Create a dockerfile e.g:
FROM directus/directus:11.10.2
USER root
RUN corepack enable
USER node
RUN pnpm install \
@directus-labs/seo-plugin \
@directus-labs/[email protected]
when building the docker file everything seems fine.
but when you run your created image:
docker run <image>
It will return the error:
file:///directus/node_modules/.pnpm/[email protected]/node_modules/zod/v4/core/schemas.js:865
const first = def.options[0]._zod.run;
^
TypeError: Cannot read properties of undefined (reading 'run')