Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browserify gives me Uncaught TypeError: Cannot read property 'prototype' of undefined #9566

Closed
DrexxBoban opened this issue Feb 12, 2020 · 2 comments

Comments

@DrexxBoban
Copy link

DrexxBoban commented Feb 12, 2020

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

@SimenB
Copy link
Member

SimenB commented Feb 12, 2020

Browserify is not maintained in this repo, but here https://github.com/browserify/browserify

@SimenB SimenB closed this as completed Feb 12, 2020
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants