sequenceTubeMap icon indicating copy to clipboard operation
sequenceTubeMap copied to clipboard

Syntax error: Unexpected token (50:48) in ./src/App.js

Open nityendra21 opened this issue 1 year ago • 0 comments

Hi, I seem to be getting this error when building sequenceTubeMap using npm run build:

Dependencies:

npm = 9.6.7
node = 20.3.1
nvm = 0.39.3
> [email protected] build
> react-scripts build

Creating an optimized production build...
Failed to compile.

./src/App.js
Syntax error: Unexpected token (50:48)

48 |     // Set defaultViewTarget to either URL params (if present) or the first example
49 |     this.defaultViewTarget =
> 50 |       urlParamsToViewTarget(document.location) ?? config.DATA_SOURCES[0]; 
    |                                                 ^
51 |     this.state = {
52 |       // These describe the files on the server side that we are working on.
53 |       // This is a little like dataPath (inside viewTarget, which specifies if we're using mounted/built-in data),

This error seems to persist even when using yarn v 1.22.19 for build.

nityendra21 avatar Jul 03 '23 11:07 nityendra21