InsOp
WWasp
•Created by InsOp on 2/21/2025 in #đŸ™‹questions
Ejected Dockerfile does not work
i have 16.1 and this is what i get:
now there is missing a lot of dirs so he fails at building the dockerfile:
for example:
FROM node:18.18.0-alpine3.17 AS node
FROM node AS base
RUN apk --no-cache -U upgrade # To ensure any potential security patches are applied.
FROM base AS server-builder
RUN apk add --no-cache python3 build-base libtool autoconf automake
WORKDIR /app
COPY src ./src
COPY package.json .
COPY package-lock.json .
COPY server .wasp/build/server
COPY sdk .wasp/out/sdk
RUN npm install && cd .wasp/build/server && npm install
COPY db/schema.prisma .wasp/build/db/
RUN cd .wasp/build/server && npx prisma generate --schema='../db/schema.prisma'
RUN cd .wasp/build/server && npm run bundle
FROM base AS server-production
RUN apk add --no-cache python3
ENV NODE_ENV production
WORKDIR /app
COPY --from=server-builder /app/node_modules ./node_modules
COPY --from=server-builder /app/.wasp/build/server/node_modules .wasp/build/server/node_modules
COPY --from=server-builder /app/.wasp/build/server/bundle .wasp/build/server/bundle
COPY --from=server-builder /app/.wasp/build/server/package*.json .wasp/build/server/
COPY db/ .wasp/build/db/
EXPOSE ${PORT}
WORKDIR /app/.wasp/build/server
ENTRYPOINT ["npm", "run", "start-production"]
FROM node:18.18.0-alpine3.17 AS node
FROM node AS base
RUN apk --no-cache -U upgrade # To ensure any potential security patches are applied.
FROM base AS server-builder
RUN apk add --no-cache python3 build-base libtool autoconf automake
WORKDIR /app
COPY src ./src
COPY package.json .
COPY package-lock.json .
COPY server .wasp/build/server
COPY sdk .wasp/out/sdk
RUN npm install && cd .wasp/build/server && npm install
COPY db/schema.prisma .wasp/build/db/
RUN cd .wasp/build/server && npx prisma generate --schema='../db/schema.prisma'
RUN cd .wasp/build/server && npm run bundle
FROM base AS server-production
RUN apk add --no-cache python3
ENV NODE_ENV production
WORKDIR /app
COPY --from=server-builder /app/node_modules ./node_modules
COPY --from=server-builder /app/.wasp/build/server/node_modules .wasp/build/server/node_modules
COPY --from=server-builder /app/.wasp/build/server/bundle .wasp/build/server/bundle
COPY --from=server-builder /app/.wasp/build/server/package*.json .wasp/build/server/
COPY db/ .wasp/build/db/
EXPOSE ${PORT}
WORKDIR /app/.wasp/build/server
ENTRYPOINT ["npm", "run", "start-production"]
sdk
server
db
.
Am I missing something?9 replies
WWasp
•Created by InsOp on 1/17/2025 in #đŸ™‹questions
Cannot find package 'vitest' imported from

12 replies
WWasp
•Created by InsOp on 1/17/2025 in #đŸ™‹questions
Prisma: has no exported member
I am trying to install the opensaas template with wasp 0.15.2 but getting this:
I read that 0.15 came with breaking changes, but i also read that the opensaas template is fit for 0.15.
[ Wasp ] auth/providers/types.ts(11,37): error TS2694: Namespace '"/mnt/projects/challenge/nodeflowai/nodeflowai/app/.wasp/out/sdk/wasp/node_modules/.prisma/client/default".Prisma' has no exported member 'UserCreateInput'.
[ Wasp ] auth/utils.ts(132,17): error TS2694: Namespace '"/mnt/projects/challenge/nodeflowai/nodeflowai/app/.wasp/out/sdk/wasp/node_modules/.prisma/client/default".Prisma' has no exported member 'AuthWhereInput'.
[ Wasp ] auth/utils.ts(193,27): error TS2339: Property 'PrismaClientKnownRequestError' does not exist on type 'typeof Prisma'.
[ Wasp ] auth/utils.ts(193,62): error TS2339: Property 'code' does not exist on type 'unknown'.
[ Wasp ] auth/utils.ts(199,27): error TS2339: Property 'PrismaClientValidationError' does not exist on type 'typeof Prisma'.
[ Wasp ] auth/utils.ts(210,27): error TS2339: Property 'PrismaClientKnownRequestError' does not exist on type 'typeof Prisma'.
[ Wasp ] auth/utils.ts(210,62): error TS2339: Property 'code' does not exist on type 'unknown'.
[ Wasp ] auth/utils.ts(221,27): error TS2339: Property 'PrismaClientKnownRequestError' does not exist on type 'typeof Prisma'.
[ Wasp ] auth/utils.ts(221,62): error TS2339: Property 'code' does not exist on type 'unknown'.
[ Wasp ] entities/index.ts(2,8): error TS2305: Module '"@prisma/client"' has no exported member 'User'.
[ Wasp ] entities/index.ts(3,8): error TS2305: Module '"@prisma/client"' has no exported member 'GptResponse'.
removed some lines for brevity
[ Wasp ] auth/providers/types.ts(11,37): error TS2694: Namespace '"/mnt/projects/challenge/nodeflowai/nodeflowai/app/.wasp/out/sdk/wasp/node_modules/.prisma/client/default".Prisma' has no exported member 'UserCreateInput'.
[ Wasp ] auth/utils.ts(132,17): error TS2694: Namespace '"/mnt/projects/challenge/nodeflowai/nodeflowai/app/.wasp/out/sdk/wasp/node_modules/.prisma/client/default".Prisma' has no exported member 'AuthWhereInput'.
[ Wasp ] auth/utils.ts(193,27): error TS2339: Property 'PrismaClientKnownRequestError' does not exist on type 'typeof Prisma'.
[ Wasp ] auth/utils.ts(193,62): error TS2339: Property 'code' does not exist on type 'unknown'.
[ Wasp ] auth/utils.ts(199,27): error TS2339: Property 'PrismaClientValidationError' does not exist on type 'typeof Prisma'.
[ Wasp ] auth/utils.ts(210,27): error TS2339: Property 'PrismaClientKnownRequestError' does not exist on type 'typeof Prisma'.
[ Wasp ] auth/utils.ts(210,62): error TS2339: Property 'code' does not exist on type 'unknown'.
[ Wasp ] auth/utils.ts(221,27): error TS2339: Property 'PrismaClientKnownRequestError' does not exist on type 'typeof Prisma'.
[ Wasp ] auth/utils.ts(221,62): error TS2339: Property 'code' does not exist on type 'unknown'.
[ Wasp ] entities/index.ts(2,8): error TS2305: Module '"@prisma/client"' has no exported member 'User'.
[ Wasp ] entities/index.ts(3,8): error TS2305: Module '"@prisma/client"' has no exported member 'GptResponse'.
removed some lines for brevity
12 replies