Build Deployment Error

I need advice to debug deploy Netlify App. It says that there is a user error. I’m not seeing where this error is coming from . I would appreciate any help.

My logs are below:

1:52:48 PM: ────────────────────────────────────────────────────────────────
1:52:48 PM: 1. Build command from Netlify app
1:52:48 PM: ────────────────────────────────────────────────────────────────
1:52:48 PM: ​
1:52:48 PM: $ parcel build src/index.html --public-url /
1:52:51 PM: :rotating_light: /opt/build/repo/src/index.jsx: Unknown version 89 of edge
1:52:51 PM: at Function.select (/opt/build/repo/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/index.js:1102:17)
1:52:51 PM: at /opt/build/repo/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/index.js:336:33
1:52:51 PM: at Array.reduce ()
1:52:51 PM: at resolve (/opt/build/repo/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/index.js:318:18)
1:52:51 PM: at browserslist (/opt/build/repo/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/index.js:444:21)
1:52:51 PM: at getTargets (/opt/build/repo/node_modules/@babel/helper-compilation-targets/lib/index.js:191:48)
1:52:51 PM: at /opt/build/repo/node_modules/@babel/preset-env/lib/index.js:260:57
1:52:51 PM: at Object.default (/opt/build/repo/node_modules/@babel/helper-plugin-utils/lib/index.js:19:12)
1:52:51 PM: at getEnvPlugins (/opt/build/repo/node_modules/parcel-bundler/src/transforms/babel/env.js:63:34)
1:52:51 PM: at getEnvConfig (/opt/build/repo/node_modules/parcel-bundler/src/transforms/babel/env.js:13:25)
1:52:51 PM: ​
1:52:51 PM: ────────────────────────────────────────────────────────────────
1:52:51 PM: “build.command” failed
1:52:51 PM: ────────────────────────────────────────────────────────────────
1:52:51 PM: ​
1:52:51 PM: Error message
1:52:51 PM: Command failed with exit code 1: parcel build src/index.html --public-url /
1:52:51 PM: ​
1:52:51 PM: Error location
1:52:51 PM: In Build command from Netlify app:
1:52:51 PM: parcel build src/index.html --public-url /
1:52:51 PM: ​
1:52:51 PM: Resolved config
1:52:51 PM: build:
1:52:51 PM: command: parcel build src/index.html --public-url /
1:52:51 PM: commandOrigin: ui
1:52:51 PM: publish: /opt/build/repo/dist
1:52:51 PM: Caching artifacts
1:52:51 PM: Started saving node modules
1:52:51 PM: Finished saving node modules
1:52:51 PM: Started saving build plugins
1:52:51 PM: Finished saving build plugins
1:52:51 PM: Started saving pip cache
1:52:52 PM: Finished saving pip cache
1:52:52 PM: Started saving emacs cask dependencies
1:52:52 PM: Finished saving emacs cask dependencies
1:52:52 PM: Started saving maven dependencies
1:52:52 PM: Finished saving maven dependencies
1:52:52 PM: Started saving boot dependencies
1:52:52 PM: Finished saving boot dependencies
1:52:52 PM: Started saving rust rustup cache
1:52:52 PM: Finished saving rust rustup cache
1:52:52 PM: Started saving go dependencies
1:52:52 PM: Finished saving go dependencies
1:52:54 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:52:54 PM: Creating deploy upload records
1:52:54 PM: Failing build: Failed to build site
1:52:54 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
1:52:54 PM: Finished processing build request in 57.104374877s

It says unknown version of the (web browser) Edge, I’m guessing. It seems like a problem in the index.jsx file.

Here’s my index.jsx file. I dont have any reference in there to Version 89 of Edge. Or maybe Im missing something.

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { Provider } from 'react-redux';
import './index.scss';
import MainView from './components/MainView/mainview';
import muviApp from './reducers/reducers';

const store = createStore(muviApp, applyMiddleware(thunk));

class MuviApp extends Component {
    render() {
        return (
            <Provider store={store}>
                <MainView />
            </Provider>
        )
    }
}

const container = document.getElementsByClassName('app-container')[0];

ReactDOM.render(React.createElement(MuviApp), container);

Is there a chance it’s in your package.json. I’ve seen some setups listing some browsers there. So, that’s a possibility. Either ways, maybe it you can share your repo or a minimal reproduction of the error, it can be easier to debug.

Alright. heres a link to my repo. Thanks for the help.

I just checked your repo and your package.json doesn’t have a build script. What’s the test or build command for this?

parcel build src/index.html --public-url /

Sadly the Node Modules won’t install on my local machine so I’m unable to debug this.

One thing I can advice is, try removing package-lock.json, and update the dependencies. Then, clear cache and deploy.

I’ve tried to remove the package.lock.json file, updating my dependencies, clearing my cache and redeploying.

Ive also checked other posts who were having the same issue as I was and tried to change my build command from “parcel build src/index.html --pubilc-url /” to both “CI= parcel build src/index.html --public-url /” and “CI= parcel build src/index.html”. neither of which worked. I still come across the same issue.

/opt/build/repo/src/index.jsx: Unknown version 89 of edge -----

This line continues to be a mystery to me. Could it be the parcel bundler? According to the logs thats where the build process terminates.

I would appreciate some help with this.

I’m still not sure either. But here are some things you can try:

None of them actually talk about Parcel, but the error is the same. I hope something works. You might find more such solutions on Google, and if you find one that suits your case, do post it here if possible.