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
Caveat: I'm not sure whether I'm observing intended behaviour or not. It could be a "It Works On My Machine" kind of problem - perhaps it is not.
The symptoms suggest that platform side @types/node isn't installed when the tests are run (perhaps that is intentional).
The error message is as follows:
We received the following error when we ran your code:
The submitted code didn't compile. We have collected the errors encountered during compilation. At this moment the error messages are not very read-friendly, but it's a start. We are working on a more helpful output.
dnd-ability-scores.ts(1,20): error TS2307: Cannot find module 'crypto' or its corresponding type declarations.
Clearly the package.json downloaded with the CLI installs @types/node which is why no such error occurs locally.
"@types/node": "^14.17.14",
Why the h@ll are you using crypto.randomDFillSync() in an easy exercise.
I've stopped using Math.random() ever since I ran into this:
Note:Math.random() does not provide cryptographically secure random numbers. Do not use them for anything related to security. Use the Web Crypto API instead, and more precisely the window.crypto.getRandomValues() method.
that remark may as well be a deprecation notice - i.e. one needs to also know how to use crypto.getRandomValues() or crypto.randomFillSync().
At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories.
This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you!
If you're interested in learning more about this auto-responder, please read this blog post.
Caveat: I'm not sure whether I'm observing intended behaviour or not. It could be a "It Works On My Machine" kind of problem - perhaps it is not.
The symptoms suggest that platform side
@types/node
isn't installed when the tests are run (perhaps that is intentional).The error message is as follows:
Example solution affected.
dnd-abilities-scores.ts
dnd-character.ts
Clearly the
package.json
downloaded with the CLI installs@types/node
which is why no such error occurs locally.I've stopped using
Math.random()
ever since I ran into this:that remark may as well be a deprecation notice - i.e. one needs to also know how to use
crypto.getRandomValues()
orcrypto.randomFillSync()
.Update: Using
crypto
worked fine 9 days ago with the Simple Cipher exerciseThe text was updated successfully, but these errors were encountered: