Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Example doesn't work #6

Open
Miniontoby opened this issue Sep 19, 2022 · 16 comments
Open

[bug] Example doesn't work #6

Miniontoby opened this issue Sep 19, 2022 · 16 comments
Labels
bug Something isn't working sorting

Comments

@Miniontoby
Copy link

Miniontoby commented Sep 19, 2022

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

> numworks.js@1.2.1 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
@Miniontoby Miniontoby added bug Something isn't working sorting labels Sep 19, 2022
@Yaya-Cout
Copy link
Contributor

It's working on up-to-date Arch Linux with Node v18.9.0.
image

@Miniontoby
Copy link
Author

And here it doesn't work!

I now have screenshot:
image

@Miniontoby
Copy link
Author

Miniontoby commented Sep 20, 2022

I might try this... I think this issue is actually not related to this repo but to windows...

https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported

After: I got it working with this command: node --openssl-legacy-provider .\node_modules\webpack-dev-server\bin\webpack-dev-server.js --config conf/dev.webpack.config.js

EDIT: It didn't see my calculator, can this be because I use the default software and not the Omega software?

@Yaya-Cout
Copy link
Contributor

Can you try to replace var calculator = new Numworks.Recovery(); by var calculator = new Numworks(); in example/index.js (line 4) to see your calculator ?

@Miniontoby
Copy link
Author

Can you try to replace var calculator = new Numworks.Recovery(); by var calculator = new Numworks(); in example/index.js (line 4) to see your calculator ?

Does sort of work, cause it says me this after connecting:

Status: Connected.
Model: ????

@Yaya-Cout
Copy link
Contributor

Yaya-Cout commented Sep 20, 2022

It's working, so.

@Miniontoby
Copy link
Author

Miniontoby commented Sep 20, 2022

Its no longer: It keeps reseting my calculator

image

@Yaya-Cout
Copy link
Contributor

Do you have Epsilon 19 ?

@Miniontoby
Copy link
Author

Do you have Epsilon 19 ?

I am running on 19.5.0 ( bb3baa7 )

@Yaya-Cout
Copy link
Contributor

Epsilon 19 isn't compatible with NumWorks.js. Can you try with Upsilon.js ? (Upsilon.js is the Upsilon's fork of Numworks.js)

@Miniontoby
Copy link
Author

Miniontoby commented Sep 22, 2022 via email

@Miniontoby
Copy link
Author

Miniontoby commented Oct 4, 2022

Oke that one worked!

@Miniontoby
Copy link
Author

Miniontoby commented Oct 9, 2022 via email

@Miniontoby
Copy link
Author

Miniontoby commented Oct 9, 2022 via email

@Yaya-Cout
Copy link
Contributor

You can now use Upsilon.js's issue tracker. For the error of address, is it with Numwokrs.js or Upsilon.js, with which OS/version.

@Miniontoby
Copy link
Author

You can now use Upsilon.js's issue tracker. For the error of address, is it with Numwokrs.js or Upsilon.js, with which OS/version.

Check the UpsilonNumworks#3 if you want to still help me with this.

Also do you need that code so this thing can run without webserver thingy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sorting
Projects
None yet
Development

No branches or pull requests

2 participants