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

question: Uncaught TypeError: __webpack_require__(...) is not a function #1890

Closed
tony-kerz opened this issue Jan 15, 2016 · 10 comments
Closed
Labels

Comments

@tony-kerz
Copy link

i've recently started experiencing this issue, where i will start up webpack as usual via npm run dev,
where dev is defined in package.json as:

"dev": "webpack-dev-server --config webpack/webpack.dev.config.js --progress --colors --hot --inline",

then i'll hit it in the browser with localhost:8080 and everything will be fine, until... i change a file in the app folder and 💥

Uncaught TypeError: __webpack_require__(...) is not a function

screen shot 2016-01-14 at 7 42 40 pm

ironically i first started seeing this when i was trying to upgrade to babel-6,
and i came across this stack-overflow post, so i thought i hit paydirt, and tried this which didn't help.

i then returned back to babel-5, and the issue was still there, so now i'm kind of flustered,
any ideas appreciated!

here is a reference to my entire project if it helps

@mikechabot
Copy link

I just started experiencing this too, I opened this up yesterday: webpack/webpack-dev-server#370

Reproducible here: https://github.com/mikechabot/webpack-dev-server-error

@tony-kerz
Copy link
Author

thanks @mikechabot misery enjoys company 😏 but seriously, i empathize with your plight, but it is a relief to know it's not some unique situation i created.

@bebraw bebraw added the bug label Jan 15, 2016
@gatorcse
Copy link

I'm also getting this

@sokra
Copy link
Member

sokra commented Jan 18, 2016

Thanks @mikechabot for the repro case. It helped me a lot to isolate the problem.

See here for the fix: jantimon/html-webpack-plugin#179

@mikechabot
Copy link

@sokra np, thanks for the awesome tool

@creeperyang
Copy link

Same issue. And thanks for the question and quick fix.

@jantimon
Copy link
Contributor

Thanks @sokra for fixing this.
I will release html-webpack-plugin 2.6.4 soon 👍

@bebraw bebraw closed this as completed Aug 29, 2016
@ashutoshkushawaha
Copy link

ashutoshkushawaha commented May 23, 2018

ERROR TypeError: webpack_require.i(...) is not a function
at NgDropdownPanelComponent.ngOnInit. i am getting this error when i use @ng-select/ng-select for select2 . please help me.

@SimaAmini
Copy link

@ashutoshkushawaha I have the same problem. did you fix this?

@geograous
Copy link

@SimaAmini @ashutoshkushawaha I have the same problem when build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants