AW
AAlokai
•Created by AW on 6/6/2023 in #🙋|general-help
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!
2 replies