"randomUUID" is not exported by "__vite-browser-external", #14214
Unanswered
ishandutta2007
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@ishandutta2007 did you ever find a solution to this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
npm run build
is failing with Error: "randomUUID" is not exported by "__vite-browser-external"Here is my vite.config.ts
Expected Behavior
to build properly
Actual Behavior
Additional Information
Reproduction
tsc && vite build
Steps to reproduce
npm install
npm run build
System Info
Used Package Manager
npm
Logs
"randomUUID" is not exported by "__vite-browser-external", imported by "node_modules/tls-client/dist/esm/sessions.js".
file: /Users/ishandutta2007/Documents/Projects/X/node_modules/tls-client/dist/esm/sessions.js:5:9
3: import { Response } from './response';
4: import { CookieJar } from 'tough-cookie';
5: import { randomUUID } from 'crypto';
^
6: import { version, } from './version';
7: class Session {
error during build:
RollupError: "randomUUID" is not exported by "__vite-browser-external", imported by "node_modules/tls-client/dist/esm/sessions.js".
at error (file:///Users/ishandutta2007/Documents/Projects/X/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:2287:30)
at Module.error (file:///Users/ishandutta2007/Documents/Projects/X/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:13716:16)
at Module.traceVariable (file:///Users/ishandutta2007/Documents/Projects/X/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:14146:29)
at ModuleScope.findVariable (file:///Users/ishandutta2007/Documents/Projects/X/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:12589:39)
at ChildScope.findVariable (file:///Users/ishandutta2007/Documents/Projects/X/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:7124:38)
at ClassBodyScope.findVariable (file:///Users/ishandutta2007/Documents/Projects/X/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:7124:38)
at ChildScope.findVariable (file:///Users/ishandutta2007/Documents/Projects/X/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:7124:38)
at FunctionScope.findVariable (file:///Users/ishandutta2007/Documents/Projects/X/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:7124:38)
at ChildScope.findVariable (file:///Users/ishandutta2007/Documents/Projects/X/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:7124:38)
at Identifier.bind (file:///Users/ishandutta2007/Documents/Projects/X/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:8309:40)
Validations
Beta Was this translation helpful? Give feedback.
All reactions