Skip to content

Error launching dev server #1643

@txk2048

Description

@txk2048

What is the current behaviour?
When trying to launch dev server I get this error message: error:0308010C:digital envelope routines::unsupported

Steps to Reproduce

  1. Create a new app using the simple template.
  2. Launch the dev server

What is the expected behaviour?
The dev server to launch

Please mention any other relevant information
I am running node 17 and this bug seems similar to this bug in create-react-app

Please paste the results of npx preact-cli info here.

Environment Info:
  System:
    OS: Windows 10 10.0.19044
    CPU: (4) x64 Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz
  Binaries:
    Node: 17.3.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.3.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (97.0.1072.69)
  npmPackages:
    preact: ^10.1.0 => 10.6.4
    preact-cli: ^3.0.0 => 3.3.3
    preact-render-to-string: ^5.1.2 => 5.1.19

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions