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
I have tried installing npm browserify globally with a command npm i -g browserify. Then I wrote in terminal browserify app.js -o bundle.js command, which created bundle.js file, and then I went to my index.html and I changed my script to <script defer "src="bundle.js"/> . I went to check and indeed error Uncaught referenceError: require is not defined is gone, but I have this new error:
bundle.js:41149 Uncaught TypeError: Cannot read property 'prototype' of undefined
at Object. (bundle.js:41149)
at Object.236../utils (bundle.js:42251)
at o (bundle.js:1)
at bundle.js:1
at Object.232../application (bundle.js:40389)
at o (bundle.js:1)
at bundle.js:1
at Object.230../lib/express (bundle.js:39717)
at o (bundle.js:1)
at bundle.js:1
(anonymous) @ bundle.js:41149
236../utils @ bundle.js:42251
o @ bundle.js:1
(anonymous) @ bundle.js:1
232../application @ bundle.js:40389
o @ bundle.js:1
(anonymous) @ bundle.js:1
230../lib/express @ bundle.js:39717
o @ bundle.js:1
(anonymous) @ bundle.js:1
(anonymous) @ bundle.js:36124
206._process @ bundle.js:36133
o @ bundle.js:1
r @ bundle.js:1
(anonymous) @ bundle.js:1
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
I have tried installing npm browserify globally with a command
npm i -g browserify
. Then I wrote in terminalbrowserify app.js -o bundle.js
command, which created bundle.js file, and then I went to my index.html and I changed my script to<script defer "src="bundle.js"/>
. I went to check and indeed error Uncaught referenceError: require is not defined is gone, but I have this new error:The text was updated successfully, but these errors were encountered: