foxhound87 / rfx-stack

RFX Stack - Universal App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm run api:prod cannot find module /api/services/post/config.js

omencat opened this issue · comments

Hi, I can run all the npm commands, but npm run api:prod throws an error:

Error: Cannot find module 'C:/Users/Joe/Documents/GitHub/FXBook/RFX/src/api/services/post/config.js'.
...
npm ERR! Failed at the rfx-stack@0.8.0-alpha.8 api:prod script 'cross-env NODE_ENV=production node ./run/build/start.api.bundle.js'.

I suspect webpack is unable to discover the feathers js files. Possibly something to do with autoloader.js? I am developing on a Windows 10 machine, fwiw.

Hello @omencat

Is this path correct?
C:/Users/Joe/Documents/GitHub/FXBook/RFX/src/api/services/post/config.js

I have not tested the newer version of the stack on windows but this issue was already fixed in #15.

Afterward, webpack was updated and I changed the src/api/autoloader.js.

You can try to use the older version which you can find here: https://github.com/foxhound87/rfx-stack/blob/4c139ea22ce1f37eac4dea5f139585253a592732/src/api/autoloader.js

Same issue right now. Anyway to fix this plus how can one deploy the app. seriously trying to get it done for 3 days straight

It will be helpful if you could just write the step to deploy to any cloud hosting service. Thank you