Skip to content

Uncaught SyntaxError: Unexpected token < #8398

Closed

Description

@mx2323

just leaving this for others that might be hitting this issue and frustrated.

i've been trying to get the npm run build production site to work in my ejected app, but was getting the

Uncaught SyntaxError: Unexpected token <

fixed it by changing this line in webpack.config.js

+  const publicPath = '/'//isEnvProduction

in webpack.config.js

closing, as a hint for anyone that can't get their production build to work.

Activity

  1. locked and limited conversation to collaborators on Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions