prime
prime copied to clipboard
user.meta is not a function
Tried to deploy primecms using docker my docker look something like this
FROM <package>/node:12.12 as builder
# Install system dependencies
RUN apk update && apk add git
ARG BUILD_DIR=/root/primecms
ARG INSTALL_DIR=/var/primecms
# Create app directory
RUN mkdir -p ${BUILD_DIR}
RUN mkdir -p ${INSTALL_DIR}
WORKDIR ${BUILD_DIR}
COPY . ${BUILD_DIR}
RUN yarn install --silent
RUN yarn setup
RUN yarn compile
RUN mkdir -p ${INSTALL_DIR}/node_modules/@primecms
WORKDIR ${INSTALL_DIR}/node_modules/@primecms
RUN for dir in "${BUILD_DIR}"/packages/*; do \
NEW_NAME="$(basename "$dir" | cut -d- -f2-)"; \
cp -rdf "${dir}" "./${NEW_NAME}"; \
done
WORKDIR ${INSTALL_DIR}
COPY package.deploy.json ${INSTALL_DIR}/package.json
COPY yarn.lock ${INSTALL_DIR}/yarn.lock
RUN yarn install --production --silent
then i copy over the install dir
but somehow when i run it and try to login
i keep getting the user.meta is not a function error on the getUser
but everything work fine in my local development any idea what could have caused this? thank you
Initial install using yarn seems to be broken right now. If you swap yarn install --silent with npm install everything should work. This has for sure something to do with a mad yarn.lock. It does not happen, when using the latest tag v0.4.0-beta.0.