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

CommonJS environment without "util" module #300

Closed
dotnetCarpenter opened this issue Jun 15, 2021 · 0 comments · Fixed by #303
Closed

CommonJS environment without "util" module #300

dotnetCarpenter opened this issue Jun 15, 2021 · 0 comments · Fixed by #303

Comments

@dotnetCarpenter
Copy link

dotnetCarpenter commented Jun 15, 2021

I'm trying to get some help to refactor my code and scrimba.com is awesome at that since you can follow code edits like a video.

But sanctuary-def uses the node.js module util and expect all CommonJS environments to be node.js.

I get the following error when I try to run my code at https://scrimba.com/scrim/cQGBN6cM:

Error: Unknown require: util (in module /node_modules/sanctuary-def/index.js) (/node_modules/sanctuary-def/index.js:191)

Previously I got help from @Avaq here: https://scrimba.com/scrim/cRgK3yAr (click play down in the left corner). In that example the code was not meant to run but I'm trying in the first example, where I am getting the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant