Static GitHub Issues

[686] nuxt build error

prev: trying to run latest from master
next: Cannot find module 'babel-loader!./xxx.js'

when I run nuxt build,I got:

TypeError: __WEBPACK_IMPORTED_MODULE_4_lodash___default.a.last(...).indexOf is not a function
    at r (/home/hxh/.npm-global/lib/node_modules/nuxt/dist/nuxt.js:424:65)
    at /home/hxh/.npm-global/lib/node_modules/nuxt/dist/nuxt.js:618:22
    at Array.map (native)
    at Nuxt.generateRoutesAndFiles$ (/home/hxh/.npm-global/lib/node_modules/nuxt/dist/nuxt.js:617:43)
    at tryCatch (/home/hxh/.npm-global/lib/node_modules/nuxt/node_modules/.0.10.3@regenerator-runtime/runtime.js:64:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/home/hxh/.npm-global/lib/node_modules/nuxt/node_modules/.0.10.3@regenerator-runtime/runtime.js:299:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/home/hxh/.npm-global/lib/node_modules/nuxt/node_modules/.0.10.3@regenerator-runtime/runtime.js:116:21)
    at onFulfilled (/home/hxh/.npm-global/lib/node_modules/nuxt/node_modules/.4.6.0@co/index.js:65:19)
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c590">#c590</a>)</em></sub></div>