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
When calling useState, the following error occurs and the application crashes. I'm using webpack 5 as a dependency.
VM303:2 Uncaught ReferenceError: process is not defined
at Object.4043 (:2:13168)
at r (:2:306599)
at Object.8048 (:2:9496)
at r (:2:306599)
at Object.8641 (:2:1379)
at r (:2:306599)
at :2:315627
at :2:324225
at :2:324229
at HTMLIFrameElement.e.onload (index.js:1:1)
module.exports={options: {buildType: "iso-serverless",},modifyWebpackConfig(opts){constconfig=opts.webpackConfig;if(opts.env.target==='node'){config.plugins.push(newopts.webpackObject.ContextReplacementPlugin(// we want to replace context/express\/lib/,// and replace all searches in// express/lib/*path.resolve('node_modules'),// to look in folder 'node_modules'{// and return a map'ejs': 'ejs'// which resolves request for 'ejs'}// to module 'ejs')// __webpack_require__(...)(mod)// we set `mod = 'ejs'`)}if(opts.env.target==='web'){config.plugins.push(newopts.webpackObject.ProvidePlugin({process: 'process/browser',}),);}returnconfig;}};
This discussion was converted from issue #1863 on May 21, 2022 00:01.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
❓Question
When calling useState, the following error occurs and the application crashes. I'm using webpack 5 as a dependency.
VM303:2 Uncaught ReferenceError: process is not defined
at Object.4043 (:2:13168)
at r (:2:306599)
at Object.8048 (:2:9496)
at r (:2:306599)
at Object.8641 (:2:1379)
at r (:2:306599)
at :2:315627
at :2:324225
at :2:324229
at HTMLIFrameElement.e.onload (index.js:1:1)
Beta Was this translation helpful? Give feedback.
All reactions