TypeError: crypto$2.getRandomValues is not a function

Created on 5 February 2025, 4 months ago

Overview

Encountered this error while executing the frontend tooling as per the steps in CONTRIBUTING.md (dev version of this module):

error during build:
TypeError: crypto$2.getRandomValues is not a function
    at resolveConfig (file:///Users/ankit/Sites/non-profit-industry-solution/web/modules/contrib/experience_builder/ui/node_modules/vite/dist/node/chunks/dep-CHZK6zbr.js:66562:16)
    at async build (file:///Users/ankit/Sites/non-profit-industry-solution/web/modules/contrib/experience_builder/ui/node_modules/vite/dist/node/chunks/dep-CHZK6zbr.js:65395:18)
    at async CAC.<anonymous> (file:///Users/ankit/Sites/non-profit-industry-solution/web/modules/contrib/experience_builder/ui/node_modules/vite/dist/node/cli.js:829:5)

First command "npm install" seems to have executed fine.

Also, another alternate command "docker build --output dist ." isn't working due to the issue "The legacy builder is deprecated and will be removed in a future release."

Proposed resolution

User interface changes

🐛 Bug report
Status

Active

Version

0.0

Component

Theme builder

Created by

🇮🇳India ankit agrawal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024