A
Alokaiβ€’2y ago
AW

Building on docker is missing module files

Hello everyone Im trying to build and run vue-storefront inside Docker. I was surprised that I couldn't find an official image for this, but i just wrote a simple Dockerfile for a nuxt app The code im trying to build is literally the vue-storefront git repo, no changes except adding a dockerfile the image fails at the RUN yarn build instruction with ERROR in modules/cms/build.ts:10:43 TS2339: Property 'cms' does not exist on type 'NuxtOptionsRuntimeConfig'. Property 'cms' does not exist on type '(env: ProcessEnv) => NuxtRuntimeConfig'. Code Snippet: ... const userConfig = middlewareConfig.integrations.shopify.configuration this.nuxt.options.publicRuntimeConfig.cms = userConfig?.cms ?? { blogs: '/blogs', articles: '/articles' } ... ERROR in modules/cms/runtime.ts:7:41 TS2339: Property 'cms' does not exist on type 'NuxtOptionsRuntimeConfig'. Property 'cms' does not exist on type '(env: ProcessEnv) => NuxtRuntimeConfig'. Code Snippet: ... const userConfig = middlewareConfig.integrations.shopify.configuration this.nuxt.options.publicRuntimeConfig.cms = userConfig?.cms ?? { blogs: '/blogs', articles: '/articles' } ... Im goin crazy with this, I have used nuxt in the past, but that was almost 3 years ago and lots have changed. can someone shed a bit of light on this? Is anyone willing to share a docker I can use? πŸ˜„ thanks for your time, this project looks awesome!
1 Reply
AW
AWOPβ€’2y ago
for context my dockerfile is: Define the base image FROM node:16.15 Define the working directory WORKDIR /usr/src/app Copy package.json and package-lock.json COPY package*.json ./ Install dependencies RUN yarn Copy the rest of your application code COPY . . Build the application RUN yarn build Define the command to run your app using CMD which will be spun up in a lightweight node instance CMD [ "yarn", "start" ] Expose the port EXPOSE 3001
Want results from more Discord servers?
Add your server