-
-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
I would like to use Sanctuary with Vue 3.x (Composition API), Vite (2.6.x) and Yarn 3.x. Vite runs without problem, but when navigating to any page, I am running into error from Either/index.js:
var custom = util.inspect.custom; TypeError: Cannot read properties of undefined (reading 'custom')
My usage of Sanctuary looks like this api.utils.js:
import * as S from 'sanctuary'
export const processData = ({ data }) => S.pipe ([ S.head, S.props(['value', 'result']) ]) (data.rows)
From our discussion on glitter, recommended solution would be:
The long-term fix is to update Sanctuary to use Symbol.for ('nodejs.util.inspect.custom'), obviating the need for require ('util'), circumventing this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels