Closed francoscarpa closed 4 years ago
@francoscarpa It's very difficult to debug without a sample repo we can play with. Can you upload or link to your repository, please?
@francoscarpa It's very difficult to debug without a sample repo we can play with. Can you upload or link to your repository, please?
Sure, sorry: https://github.com/francoscarpa/francoscarpa.com.
This is a duplicate of #1325. There is a workaround listed here: https://github.com/11ty/eleventy/issues/1325#issuecomment-691792459
Otherwise it’ll ship with 1.0
Describe the bug My Eleventy project worked well. Recently, I decided to upload it to GitHub to enable Netlify’s continuous deployment and to let anyone study it. In that moment, I realized I had always forgotten to save the Eleventy package as a dependency inside the
package.json
file of the project. So, I rannpm install --save-dev @11ty/eleventy
, and now the Eleventy package is shown as a dependency.The problem is that now I get the following error when running the
npx @11y/eleventy --serve
command:The
self
thing it’s speaking about is inside the file the manages the service worker of the website,sw.js
:Note that this error is not shown when I run just
npx @11ty/eleventy
, without--serve
.Expected behavior I expect
npx @11ty/eleventy --serve
to work correctly as always, without this error.Environment: