Cant deploy my Shopify App
Hey,
i use docker for my deployment, everytime i want to deploy i get following message:
could you help me to solve that?
Terser is a peer dep from another package so no way i can change something there 😄
Under the hood is running: Remix
42 Replies
Project ID:
ce392965-b44b-4e2b-84ec-6cc17305fc2c
ce392965-b44b-4e2b-84ec-6cc17305fc2c
add
uglify-js
to your dev deps?causes more errors from other packages
swc/wasm is then missing.
but yeah, i will give it a try to extend it
do you get this error during a local build?
nope
what version of node do you use locally
20 same as in my docker and package json file
added now all the deps and this is the new deploy output:
the list goes on and on and on
are you using a dockerfile?
yes
send it please
and you build with docker locally?
nope, locally i use the dev command
i dont see really the problem here :/
i dont either, so lets just try things
because the same dockerfile and deploy works on heroku
since you dont use docker locally, so you wanna give railway's nixpacks a try?
if it isnt a hassel to setup
this would involve setting the start command in the service settings to
yarn docker-start
and just removing or renaming the Dockerfile from your project folderwait gimme a second, had that before, i do a roll back to a previous repo state
sounds good
have to recreate the yarn.lock hold the line 😄
ah yeah thats true
assumed you had one, mb
yeah but it differs now
just want to get sure to have the right versions in it
but also the same result here
its now using nixpacks?
yes
maybe this has to do with my remix config?
all my files will be served as cjs instead of esm "the new cool feature of remix"
and also have a ts config
this is based on node16 for resolution
it all looks fine to me, maybe do some research about this issue since i cant see this being isolated to railway only, and if you find anything id be happy to help you implement it on railway
thank you for your time Brody
sorry I couldn't be of more help, I'm not a js dev lol
it helped alot
the error also happend locally if i use the build command
so from there i can further debug.
ah that makes it easier then
Solution
@Brody
import { node } from "webpack";
...huh
this caused the build to crash
this line shouldnt be there, now everything works just a charm
this is why im not a js dev
🤣
teach me python
thats not any better, im a go dev
how can i set it as solved?
cant see the thing above described
oh thanks
no problem 🙂
python ❤️