Skip to content

Instantly share code, notes, and snippets.

@rivertam
Created December 23, 2015 04:26
Show Gist options
  • Save rivertam/8789afd4f97167823325 to your computer and use it in GitHub Desktop.
Save rivertam/8789afd4f97167823325 to your computer and use it in GitHub Desktop.
Errors with boilerplate
ERROR in ./src/containers/index.js
Module build failed: SyntaxError: /home/ben/calico/src/containers/index.js: Unexpected token (1:7)
> 1 | export App from './App/App';
| ^
2 | export Chat from './Chat/Chat';
3 | export Home from './Home/Home';
4 | export Widgets from './Widgets/Widgets';
at Parser.pp.raise (/home/ben/calico/node_modules/babylon/lib/parser/location.js:24:13)
at Parser.pp.unexpected (/home/ben/calico/node_modules/babylon/lib/parser/util.js:82:8)
at Parser.pp.expect (/home/ben/calico/node_modules/babylon/lib/parser/util.js:76:33)
at Parser.pp.parseExportSpecifiers (/home/ben/calico/node_modules/babylon/lib/parser/statement.js:766:8)
at Parser.pp.parseExport (/home/ben/calico/node_modules/babylon/lib/parser/statement.js:701:28)
at Parser.parseExport (/home/ben/calico/node_modules/babylon/lib/plugins/flow.js:679:20)
at Parser.pp.parseStatement (/home/ben/calico/node_modules/babylon/lib/parser/statement.js:115:90)
at Parser.parseStatement (/home/ben/calico/node_modules/babylon/lib/plugins/flow.js:621:22)
at Parser.pp.parseTopLevel (/home/ben/calico/node_modules/babylon/lib/parser/statement.js:30:21)
at Parser.parse (/home/ben/calico/node_modules/babylon/lib/parser/index.js:70:17)
at Object.parse (/home/ben/calico/node_modules/babylon/lib/index.js:45:50)
at Object.exports.default (/home/ben/calico/node_modules/babel-core/lib/helpers/parse.js:36:18)
at File.parse (/home/ben/calico/node_modules/babel-core/lib/transformation/file/index.js:574:40)
at File.parseCode (/home/ben/calico/node_modules/babel-core/lib/transformation/file/index.js:691:20)
at /home/ben/calico/node_modules/babel-core/lib/transformation/pipeline.js:167:12
at File.wrap (/home/ben/calico/node_modules/babel-core/lib/transformation/file/index.js:639:16)
at Pipeline.transform (/home/ben/calico/node_modules/babel-core/lib/transformation/pipeline.js:165:17)
at transpile (/home/ben/calico/node_modules/babel-loader/index.js:12:22)
at Object.module.exports (/home/ben/calico/node_modules/babel-loader/index.js:69:12)
@ ./src/routes.js 17:18-39
Child extract-text-webpack-plugin:
Asset Size Chunks Chunk Names
32400f4e08932a94d8bfd2422702c446.eot 70.8 kB [emitted]
db812d8a70a4e88e888744c1c9a27e89.woff2 66.6 kB [emitted]
a35720c2fed2c7f043bc7e4ffb45e073.woff 83.6 kB [emitted]
a3de2170e4e9df77161ea5d3f31b2668.ttf 142 kB [emitted]
f775f9cca88e21d45bebe185b27c0e5b.svg 366 kB [emitted]
+ 16 hidden modules
Child extract-text-webpack-plugin:
Asset Size Chunks Chunk Names
f4769f9bdb7466be65088239c12046d1.eot 20.1 kB [emitted]
fa2772327f55d8198301fdb8bcfc8158.woff 23.4 kB [emitted]
448c34a56d699c29117adc64c43affeb.woff2 18 kB [emitted]
e18bbf611f2a2e43afc071aa2f4e1512.ttf 45.4 kB [emitted]
89889688147bd7575d6327160d64e760.svg 109 kB [emitted]
+ 7 hidden modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment