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
import{createHash}from'node:crypto'functionsha256(content){returncreateHash('sha256').update(content).digest('hex')}console.log(sha256("Hash this string"));
Output:
import{hry1E0}from"node:crypto";functionrwArBvq(rwArBvq){returnhry1E0("sha256")["update"](rwArBvq)["digest"]("hex");}console["log"](rwArBvq("Hash this string"));
Error:
import { hry1E0 } from "crypto";
^^^^^^
SyntaxError: The requested module 'crypto' does not provide an export named 'hry1E0'
The text was updated successfully, but these errors were encountered:
Describe the bug:
Rename Variables breaks import statement
Config and Small code sample
Config:
Code:
Output:
Error:
The text was updated successfully, but these errors were encountered: