Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Fix webpack config unexpected identifier error #40

Merged
merged 1 commit into from
Jun 20, 2016
Merged

Fix webpack config unexpected identifier error #40

merged 1 commit into from
Jun 20, 2016

Conversation

cmdcolin
Copy link
Contributor

I was getting an error about unexpected identifier with npm run dev with node 6.0

/Users/biocmd/Sites/franklin/webpack.config.js:32
}();
 ^
SyntaxError: Unexpected token (
    at Object.exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:513:28)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at module.exports (/Users/biocmd/Sites/franklin/node_modules/webpack/bin/convert-argv.js:80:13)
    at Object.<anonymous> (/Users/biocmd/Sites/franklin/node_modules/webpack/bin/webpack.js:39:40)

npm ERR! Darwin 13.4.0
npm ERR! argv "/usr/local/Cellar/node/6.2.1/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! code ELIFECYCLE
npm ERR! franklin@1.0.0 build: `NODE_ENV=production webpack`
npm ERR! Exit status 1

I figured it might be fix it if the function was wrapped in parens and it did seem to

@jmaupetit jmaupetit added the bug label Jun 14, 2016
@willdurand
Copy link
Member

Good catch, thank you! (and sorry for the delay)

@willdurand willdurand merged commit b7f0a91 into TailorDev:master Jun 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants