shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
benny 2020-09-05T05:19:10.112600Z

any suggestions how to fix shadow getting the wrong IP? (`shadow.cljs.devtools.client.env.server_host`)

thheller 2020-09-05T08:39:44.113200Z

@benny wrong IP in which context? react-native?

2020-09-05T14:58:35.114400Z

I'm trying to compile a build for aws lambda, which renders a react app server side. Keep getting the error "Runtime.ImportModuleError: Error: Cannot find module 'react'", in logs, which doesn't appear in the frontend build. Anyone know what i'm missing?

2020-09-05T14:58:59.114600Z

It's a reagent/re-frame app

thheller 2020-09-05T16:14:20.116200Z

@danielstockton looks like you are not copying the node_modules for the lambda. node-script and node-library builds by default do not bundle their dependencies and will delegate to node to provide them. you can post process the output with something like https://github.com/vercel/ncc to make them fully self-contained if you want.

2020-09-05T16:14:53.116800Z

Yeah, im not. I guess i need to copy it into the zip before updating function code

2020-09-05T16:15:14.117Z

ncc might be useful, thanks