2

I'm trying to deploy a Vue.js application I made to Heroku, but I keep getting Cannot find module '/app/index.js'.

I feel like I'm just missing something small. Here is the git repo if you are wanting to look through the code. https://github.com/Relofr/calculator

1

2 Answers 2

3

You need app.js (as an example) file in your main directory with basic server configuration. You also have to run npm run build before deploying your app.

Follow this tutorial:

https://medium.com/netscape/deploying-a-vue-js-2-x-app-to-heroku-in-5-steps-tutorial-a69845ace489

Sign up to request clarification or add additional context in comments.

Comments

0

You don´t have any file with the name index.js try to rename ./src/main.js to ./src/index.js

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.