Skip to content

[bug] Example doesn't work #6

@Miniontoby

Description

@Miniontoby

Describe the bug
The Example doesn't work

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo
  2. npm install
  3. npm start
  4. See error

Expected behavior
(I guess) that the webserver would need to start

Screenshots
image

Environment (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: latest (1.2.1)

Additional context

PS C:\Users\Miniontoby\Documents\Programma's\phaser-webroot\numworks.js> npm start

> [email protected] start
> webpack-dev-server --config conf/dev.webpack.config.js

i 「wds」: Project is running at http://localhost:3000/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from ./example/
node:internal/crypto/hash:67
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (C:\Users\Miniontoby\Documents\Programma's\phaser-webroot\numworks.js\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (C:\Users\Miniontoby\Documents\Programma's\phaser-webroot\numworks.js\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (C:\Users\Miniontoby\Documents\Programma's\phaser-webroot\numworks.js\node_modules\webpack\lib\NormalModule.js:471:10)
    at C:\Users\Miniontoby\Documents\Programma's\phaser-webroot\numworks.js\node_modules\webpack\lib\NormalModule.js:503:5
    at C:\Users\Miniontoby\Documents\Programma's\phaser-webroot\numworks.js\node_modules\webpack\lib\NormalModule.js:358:12
    at C:\Users\Miniontoby\Documents\Programma's\phaser-webroot\numworks.js\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (C:\Users\Miniontoby\Documents\Programma's\phaser-webroot\numworks.js\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at Array.<anonymous> (C:\Users\Miniontoby\Documents\Programma's\phaser-webroot\numworks.js\node_modules\loader-runner\lib\LoaderRunner.js:205:4) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.4.0

Solutions:

  1. replace var calculator = new Numworks.Recovery(); by var calculator = new Numworks(); in example/index.js (line 4) to see your calculator
  2. Or use https://github.com/UpsilonNumworks/upsilon.js if you use Epsilon or Upsilon as OS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsorting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions