After Nuxt 1.0.0-rc4 versions there is problem with third-party plugins. For example, I use moment.js. That's how I included them
In nuxt.config.js
plugins: [
//...
{ src: '~/plugins/moment.js' },
//...
],
build: {
vendor: [
//...
'moment',
//...
],
plugins: [
new webpack.ContextReplacementPlugin(/node_modules\\moment\\locale/, /ru/)
]
}
In ~/plugins/moment.js
:
import moment from 'moment';
moment.locale('ru');
export default moment;
App building without errors, but when try to open any page showed error: