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

Error: Cannot find module 'ejs' #1

Open
julia-bougaev-bp opened this issue Nov 1, 2019 · 1 comment
Open

Error: Cannot find module 'ejs' #1

julia-bougaev-bp opened this issue Nov 1, 2019 · 1 comment

Comments

@julia-bougaev-bp
Copy link

I get Error: Cannot find module 'ejs' when running app.js file (which is compiled for production) and navigate to /template route. Could you please suggest what to do in this case?

@rozetko
Copy link
Member

rozetko commented Nov 1, 2019

Hi, @julia-bougaev-bp.

I tried to reproduce it with the following steps:

npm install
npm run build
mkdir ~/test
mv dist ~/test
mv template.ejs ~/test
cd ~/test/dist
node app.js

Then I opened http://localhost:3000/template in browser and everything works.

Please specify:

  • node version
  • steps to reproduce

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

2 participants