Closed
Description
I start the Encore ./node_modules/.bin/encore dev
and get this error:
/home/kribeetko/PhpstormProjects/ESUNZ/node_modules/@symfony/webpack-encore/index.js:378
enableVueLoader(vueLoaderOptionsCallback = () => {}) {
^^^^^^^^^^^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/kribeetko/PhpstormProjects/ESUNZ/webpack.config.js:1:76)
My webpack.config.js
:
let Encore = require("@symfony/webpack-encore");
Encore
.setOutputPath('web/build/')
.setPublicPath('/build')
.cleanupOutputBeforeBuild()
.addEntry('scripts', './assets/app.js')
.addStyleEntry('styles', './assets/app.scss')
.enableVersioning()
.enableSassLoader({
resolve_url_loader: false
})
.enablePostCssLoader()
.autoProvidejQuery()
.autoProvideVariables({
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery'
})
.configureBabel(function(babelConfig) {
babelConfig.presets.push('es2017');
})
.enableSourceMaps(!Encore.isProduction());
module.exports = Encore.getWebpackConfig();
Metadata
Metadata
Assignees
Labels
No labels