You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on the latest version of Snowpack & all plugins.
I use package manager yarn (Fill in: npm, yarn, pnpm, etc).
I run Snowpack on OS Windows (Fill in: Windows, Mac, Linux, etc).
I run Snowpack on Node.js v12+
Describe the bug
After upgrading from 3.0.13 to 3.1.0 (and above, through 3.1.2), snowpack build fails when devOptions: { secure: true } is set is snowpack.config.js.
Example error:
yarn run v1.22.0
warning package.json: No license field
$ snowpack build
[11:42:55] [snowpack] ✘ No HTTPS credentials found!
[11:42:55] [snowpack] You can specify HTTPS credentials via either:
- Including credentials in your project config under devOptions.secure.
- Including snowpack.crt and snowpack.key files in your project's root directory.
You can automatically generate credentials for your project via either:
- devcert: npx devcert-cli generate localhost
https://github.com/davewasmer/devcert-cli (no install required)
- mkcert: mkcert -install && mkcert -key-file snowpack.key -cert-file snowpack.crt localhost
https://github.com/FiloSottile/mkcert (install required)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
To Reproduce
We can't fix bugs that we can't see for ourselves. Issues often need to be closed if this section is skipped.
Bug Report Quick Checklist
Describe the bug
After upgrading from 3.0.13 to 3.1.0 (and above, through 3.1.2),
snowpack build
fails whendevOptions: { secure: true }
is set is snowpack.config.js.Example error:
To Reproduce
We can't fix bugs that we can't see for ourselves. Issues often need to be closed if this section is skipped.
npm init snowpack-app --template @snowpack/app-template-react --target secure
secure: true
in devOptions block insnowpack.config.js
yarn
yarn upgrade snowpack@3.0.13
yarn build
yarn upgrade snowpack@3.1.0
[snowpack] ✘ No HTTPS credentials found! ...
Expected behavior
I expect
snowpack build
to succeed without checking for snowpack.key and snowpack.crt.Anything else?
It looks like the following PR introduced this behavior while refactoring the build script to reuse the dev server: #2707
The text was updated successfully, but these errors were encountered: