rfx-stack icon indicating copy to clipboard operation
rfx-stack copied to clipboard

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

Open omencat opened this issue 7 years ago • 3 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 [email protected] 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.

omencat avatar Apr 22 '17 20:04 omencat

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

foxhound87 avatar Apr 24 '17 09:04 foxhound87

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

juicycleff avatar Oct 04 '17 12:10 juicycleff

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

juicycleff avatar Oct 04 '17 12:10 juicycleff