I got this error when I was missing a closing bracket.
Simplified recreation:
const foo = () => { return ( 'bar' ); }; <== this bracket was missing export default foo;
Related Posts:
- Babel 7 – ReferenceError: regeneratorRuntime is not defined
- Getting Unexpected Token Export
- Webpack – Critical dependency: the request of a dependency is an expression
- Webpack – Critical dependency: the request of a dependency is an expression
- Support for the experimental syntax ‘classProperties’ isn’t currently enabled
- Cannot find module ‘@babel/core’
- Webpack: “there are multiple modules with names that only differ in casing” but modules referenced are identical
- Jest TypeError: Path must be a string. Received undefined
- DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
- How to make Font awesome 5 work with webpack
- Cannot find module ‘webpack/bin/config-yargs’
- “You may need an appropriate loader to handle this file type” with Webpack and Babel
- How to fix ‘Unchecked runtime.lastError: The message port closed before a response was received’ chrome issue?
- Babel 6 regeneratorRuntime is not defined
- I am getting an “Invalid Host header” message when connecting to webpack-dev-server remotely
- NPM Start not starting local server
- Error: ‘node-sass’ version 5.0.0 is incompatible with ^4.0.0
- forEach is not a function error with JavaScript array
- webpack: Module not found: Error: Can’t resolve (with relative path)
- Using Node.js require vs. ES6 import/export
- Field ‘browser’ doesn’t contain a valid alias configuration
- Module not found can’t resolve
- How to import image (.svg, .png ) in a React Component
- How to include bootstrap css and js in reactjs app?
- What does this “react-scripts eject” command do?
- React Uncaught Error: Target container is not a DOM element [duplicate]
- How to determine the installed webpack version
- Console is throwing Unterminated JSX contents error
- Error: Cannot find module ‘webpack’
- webpack: Cannot read property ‘match’ of undefined
- How to resolve “Cannot use import statement outside a module” in jest
- SyntaxError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’ – Gulp
- Vue is not defined
- Uncaught TypeError: Cannot read property ‘call’ of undefined at __webpack_require__
- Block-scoped declarations not yet supported outside strict mode
- Couldn’t find preset “env” relative to directory
- Entrypoint undefined = index.html using HtmlWebpackPlugin
- Vue template or render function not defined yet I am using neither?
- how to use react require syntax?
- How can I use webpack with express?
- webpackJsonp is not defined
- Angular 2 : No NgModule metadata found
- webpack is not recognized as a internal or external command,operable program or batch file
- Vue ‘export default’ vs ‘new Vue’
- What is the best way to declare global variables in Vue.js?
- Webpack – webpack-dev-server: command not found
- What are differences between SystemJS and Webpack?
- where is create-react-app webpack config and files?
- Webpack command not found
- Error: Couldn’t find preset “es2015” relative to directory “/Users/username”
- angular-cli where is webpack.config.js file – new angular6 does not support ng eject