Uncaught ReferenceError: process is not defined in path-parse module #1753
Unanswered
deepumandal
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
package
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I'm encountering an issue in my frontend project where I'm getting the following error:
index_74f5.js:14311 Uncaught ReferenceError: process is not defined at node_modules/.pnpm/path-parse@1.0.7/node_modules/path-parse/index.js (index_74f5.js:14311:21) at ModuleSystem.require ((index):1009:26) at node_modules/.pnpm/resolve@1.22.8/node_modules/resolve/lib/node-modules-paths.js (index_a5b0.js:13405:31) at ModuleSystem.require ((index):1009:26) at node_modules/.pnpm/resolve@1.22.8/node_modules/resolve/lib/async.js (index_a5b0.js:12697:28) at ModuleSystem.require ((index):1009:26) at node_modules/.pnpm/resolve@1.22.8/node_modules/resolve/index.js (index_a5b0.js:12685:17) at ModuleSystem.require ((index):1009:26) at node_modules/.pnpm/babel-plugin-macros@3.1.0/node_modules/babel-plugin-macros/dist/index.js (index_74f5.js:6979:21) at ModuleSystem.require ((index):1009:26) node_modules/.pnpm/path-parse@1.0.7/node_modules/path-parse/index.js @ index_74f5.js:14311 require @ (index):1009 node_modules/.pnpm/resolve@1.22.8/node_modules/resolve/lib/node-modules-paths.js @ index_a5b0.js:13405 require @ (index):1009 node_modules/.pnpm/resolve@1.22.8/node_modules/resolve/lib/async.js @ index_a5b0.js:12697 require @ (index):1009 node_modules/.pnpm/resolve@1.22.8/node_modules/resolve/index.js @ index_a5b0.js:12685 require @ (index):1009 node_modules/.pnpm/babel-plugin-macros@3.1.0/node_modules/babel-plugin-macros/dist/index.js @ index_74f5.js:6979 require @ (index):1009 node_modules/.pnpm/twin.macro@3.4.1_tailwindcss@3.4.10/node_modules/twin.macro/macro.js @ index_e3c9.js:12857 require @ (index):1009 src/components/ui/Select/Select.tsx @ Radio.tsx:13 require @ (index):1009 src/components/ui/Select/index.tsx @ index.tsx:9 require @ (index):1009 src/components/template/ThemeConfigurator/ThemeSwitcher.tsx @ ThemeConfigurator.tsx:9 require @ (index):1009 src/components/template/ThemeConfigurator/ThemeConfigurator.tsx @ NavModeSwitcher.tsx:9 require @ (index):1009 src/components/template/ThemeConfigurator/index.ts @ index.ts:3 require @ (index):1009 src/components/template/SidePanel/SidePanelContent.tsx @ SidePanel.tsx:6 require @ (index):1009 src/components/template/SidePanel/SidePanel.tsx @ SideNavToggle.tsx:8 require @ (index):1009 src/components/template/SidePanel/index.ts @ index.ts:3 require @ (index):1009 src/components/layouts/ModernLayout.tsx @ Layouts.tsx:11 require @ (index):1009 src/components/layouts/Layouts.tsx @ index.css:21 require @ (index):1009 src/components/layouts/index.ts @ index.ts:3 require @ (index):1009 src/App.tsx @ farmfe_plugin_react_is_react_refresh_boundary:26 require @ (index):1009 src/index.tsx @ index.css:21 require @ (index):1009 (anonymous) @ (index):1151Context:
Configuration:
Here is my [farm.config.ts] file:
Steps Taken:
Installed the process package using pnpm install process --save
Added an alias for process in the farm.config.ts file.
Issue:
Despite these steps, I am still encountering the ReferenceError: process is not defined error.
Request:
Has anyone faced a similar issue or can provide guidance on how to resolve this error? Any help would be greatly appreciated!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions