Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
omencat opened this issue Apr 22, 2017 · 3 comments
Open

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

omencat opened this issue Apr 22, 2017 · 3 comments

Comments

@omencat
Copy link

omencat commented Apr 22, 2017

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.

@foxhound87
Copy link
Owner

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

@juicycleff
Copy link

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
Copy link

juicycleff commented Oct 4, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants