Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
Heroku SyntaxError: Unexpected token '<' when deploying PERN app

I've built a PERN app and am trying to get it up and running on Heroku. I keep getting the error:

file:///app/Client/index.js:12
<Provider store={store}>
^

SyntaxError: Unexpected token '<'

This is in the index.js file:

import React from 'react';
import ReactDOM from 'react-dom';
import App from './app.js'
import { Provider } from 'react-redux';
import { store } from './store.js';


ReactDOM.render(
    <Provider store={store}>
        <App />
    </Provider>,
    document.getElementById('root')
);

With package.json:

{
  "name": "e-comm2",
  "version": "1.0.0",
  "homepage": "https://pern-e-commerce.herokuapp.com/",
  "description": "",
  "type": "module",
  "main": "Client/index.js",
  "scripts": {
    "test": "jest",
    "build": "webpack",
    "start": "node Client/index.js",
    "dev-start": "webpack-dev-server --mode development --open --hot"
  }
  //dependencies omitted
}

Any help to point me in the right direction would be really appreciated. Thanks

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!