Skip to content

Unexpected Token while building #29

@kyin42

Description

@kyin42

I had this issue with a larger code base where App isn't defined after being built. I've replicated the error in a new minimized code. I'm assuming it has something to do with the definition of App.
My current code is as follows

function App() {
  return <div>simple app</div>;
}

export default App;

and it gives me the following build error

Unexpected token (1:205)
| function App(){return/*#__PURE__*/__WEBPACK_MODULE_REFERENCE__3_5b226a7378225d_call_directImport_asiSafe1__._("div",{children:"simple app"});}/* harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (;try{App.displayName="App";}catch(e){}App);

if it helps my code is a simple create-react-app after ejection with webpack-react-compoonent-name added to the webpack nothing else was changed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions