Edgio RUM - error on build in basic React project

Hi guys

I can’t build my react project with @edgio/rum package in it.
I have reported it here:

Not sure what is wrong.
Thank you

Hey Petr,

I tested this with a basic npx create-react-app, initialized with edgio init and added the @edgio/rum dependency. I verified in dev mode as well as a prod build by seeing the request in the network panel. My index.js is as follows:

import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { Metrics } from '@edgio/rum';

const root = ReactDOM.createRoot(document.getElementById('root'));
    <App />

new Metrics({
  token: 'abc123', // Get your token from the Edgio Console

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals

Is there anything I have different from you that may cause this? I am also on Node 18.18.0.

I have created a repo and CI deployment to rule out my machine GitHub - petrvecera/rum_test

which is deployed using


Thanks, I actually am able to reproduce this on mine as well. I’ll continue looking into it and let you know the resolution.