Возникает ошибка.
``ERROR in ./jsx/app.jsx
Module parse failed: C:\ProjectCourse\здесь путь Unexpected token (6:7)
You may need an appropriate loader to handle this file type.
| import {articles} from './fixtures.js'
|
| render(<Article />, document.getElementById('container'))
| /*article = {articles[0]}*/
@ multi ./jsx/app.jsx``
Вебпак 2.6.1
Настройки
var path = require('path')
module.exports = {
devtool: 'source-map',
entry: [
'./jsx/app.jsx'
],
output: {
path: path.join(__dirname, 'build'),
filename: 'bundle.js',
publicPath: '/build/'
},
devServer: {
proxy: [{
path: '/api/',
target: 'http://localhost:3001'
}],
historyApiFallback: true
},
module: {
loaders: [
{
test: /\.js/,
loaders: ['babel-loader'],
include: path.join(__dirname, 'src')
},
{
test: /\.css/,
loaders: ['style-loader', 'css-loader'],
}
]
}
}