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: ENOENT: no such file or directory, open '/tmp/build_c0584bd6/static/sw.js' #517

Open
lazyseals opened this issue Mar 22, 2022 · 0 comments

Comments

@lazyseals
Copy link

Hey,

When I build my application vianuxt build in Heroku I see the following error message:

 ERROR  ENOENT: no such file or directory, open '/tmp/build_c0584bd6/static/sw.js'
 WARN  This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
 ERROR  Error: ENOENT: no such file or directory, open '/tmp/build_c0584bd6/static/sw.js'

From my understanding the error occurs, because it tries to access the sw.js file from my previous build located at the path '/tmp/build_c0584bd6/static/sw.js'. However, as Heroku creates a new isolated instance for every build/deploy (ref: https://stackoverflow.com/questions/17289459/heroku-tmp-folder-deletion) it totally makes sense that this file cannot be accessed.

How can I get rid of this error during my build in Heroku?

Thanks in advance!

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

1 participant