小编chu*_*miz的帖子

使用babel 6时,`__webpack_require __(...)不是函数`

一切似乎都很好:http://d.pr/i/1aZxR 以下配置.

但是,当我运行代码时,我得到以下错误(通过webpack-dev-server):

Uncaught TypeError: __webpack_require__(...) is not a function(anonymous function) @ login.js:4__webpack_require__ @ bootstrap 38790ff45722f55eb700?6a08:50(anonymous function) @ bootstrap.js:2363__webpack_require__ @ bootstrap 38790ff45722f55eb700?6a08:50(anonymous function) @ app.38790ff45722f55eb700.js:29__webpack_require__ @ bootstrap 38790ff45722f55eb700?6a08:50webpackJsonpCallback @ bootstrap 38790ff45722f55eb700?6a08:21(anonymous function) @ app.38790ff45722f55eb700.js:1
angular.js:68 Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
Error: [$injector:nomod] Module 'app' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. …
Run Code Online (Sandbox Code Playgroud)

webpack babeljs webpack-dev-server

37
推荐指数
3
解决办法
5万
查看次数

标签 统计

babeljs ×1

webpack ×1

webpack-dev-server ×1