Skip to content

Uncaught SyntaxError: Unexpected token < #8398

@mx2323

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.

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