Sapper: Export Error

Created on 22 Jan 2018  Â·  5Comments  Â·  Source: sveltejs/sapper

As i run "npx sapper export", there is an error "no such file or directory, open '/Users/xxxxx/sapper-pwa/.sapper/service-worker.js'"

It seems that no service-worker.js is generated using "npm run build"..

I wanna try "Export to a static web app"

Most helpful comment

Found the same issue, can confirm pinning to 0.5.0 fixes it.

All 5 comments

Hi @jzkitchen! It works if you explicitly install [email protected]. I'm not quite sure why this was introduced, but it seems like it broke the export command.

I freshly cloned the repository, then installed all independencies. Also I verified that sapper was 0.5 version. After building and exporting, the error still occurred.

After running "npm run build", there is no service-worker.js inside .sapper or dist

Found the same issue, can confirm pinning to 0.5.0 fixes it.

Closing as this is fixed in more recent versions — thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

keyvan-m-sadeghi picture keyvan-m-sadeghi  Â·  4Comments

mylastore picture mylastore  Â·  3Comments

milosdjakovic picture milosdjakovic  Â·  3Comments

antony picture antony  Â·  3Comments

BMorearty picture BMorearty  Â·  3Comments