Home

Issue: 2869

404 ResourceNotFound (ttf, woff, svg)

[issue link]

I’m using ElemeFE/Element, I set it up in a plugin as follow:

import Vue from 'vue';
import ElementUI from 'element-ui';
import lang from 'element-ui/lib/locale/lang/en';
import locale from 'element-ui/lib/locale';
import '../theme/index.css';

locale.use(lang);
Vue.use(ElementUI);

I receive network errors:
image

With console errors:
GET http://localhost:3000/_nuxt/fonts%0Element-icons.6f0a763.ttf net::ERR_ABORTED

Currently under Nuxt v1.3.0
I think the error might come from nuxt webpack config.


File _nuxt/vendor.js contains:

/***/ "./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.ttf":
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "fonts\\element-icons.6f0a763.ttf";

/***/ }),

File _nuxt/app.js contains:

/***/ "./theme/fonts/element-icons.ttf?t=1510834658947":
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "fonts\\element-icons.6f0a763.ttf";

/***/ }),

Does the problem come from \\e that turns into %0E?

This question is available on Nuxt.js community (#c2493)