Hi everybody,
I genereted front-end module from cuba-studio on mac osx and all works ok. I push my code on git and pull it in windows machine. When I try to compile with
npm run-script build --verbose
I get this error:
npm run-script build --verbose
npm info it worked if it ends with ok
npm verb cli [
npm verb cli 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'run-script',
npm verb cli 'build',
npm verb cli '--verbose'
npm verb cli ]
npm info using npm@6.14.8
npm info using node@v14.9.0
npm verb run-script [ 'prebuild', 'build', 'postbuild' ]
npm info lifecycle sportbest@0.1.0~prebuild: sportbest@0.1.0
npm info lifecycle sportbest@0.1.0~build: sportbest@0.1.0
> sportbest@0.1.0 build C:\WORKSPACE\hf\sportbest\modules\front
> react-scripts build
Creating an optimized production build...
Failed to compile.
C:/Users/nscarciolla.HFC/Workspace/hf/sportbest/modules/front/src/app/player/PlayerList.tsx
Line 122:67: Parsing error: Unexpected token, expected ","
120 |
121 | deleteSelectedRow = () => {
> 122 | this.showDeletionDialog(this.getRecordById(this.selectedRowKey!));
| ^
123 | };
124 | }
125 |
npm verb lifecycle sportbest@0.1.0~build: unsafe-perm in lifecycle true
npm verb lifecycle sportbest@0.1.0~build: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\WORKSPACE\hf\sportbest\modules\front\node_modules\.bin;C:\Python38\Scripts\;C:\Python38\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Dell\DW WLAN Card;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Google\Google Apps Sync\;C:\Program Files\Google\Google Apps Migration\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Common Files\Adobe\AGL;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;C:\Program Files\Java\jdk1.8.0_202\bin;C:\Program Files\OpenSSL\bin;C:\Users\nscarciolla.HFC\AppData\Roaming\npm;C:\Users\nscarciolla.HFC\.jpm\windows\bin;C:\Program Files\Git\cmd;C:\Program Files\Java\apache-maven-3.6.0\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Google\Hangouts Plugin for Microsoft Outlook\;C:\Program Files\SlikSvn\bin;C:\Program Files\nodejs\;C:\Users\nscarciolla.HFC\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Java\jdk1.8.0_202\bin;C:\Users\nscarciolla.HFC\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Jad;C:\Program Files\Haulmont\CUBA Studio 2019.3\bin;;C:\Windows\System32;C:\Users\nscarciolla.HFC\AppData\Roaming\npm
npm verb lifecycle sportbest@0.1.0~build: CWD: C:\WORKSPACE\hf\sportbest\modules\front
npm info lifecycle sportbest@0.1.0~build: Failed to exec build script
npm verb stack Error: sportbest@0.1.0 build: `react-scripts build`
npm verb stack Exit status 1
npm verb stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
npm verb stack at EventEmitter.emit (events.js:314:20)
npm verb stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
npm verb stack at ChildProcess.emit (events.js:314:20)
npm verb stack at maybeClose (internal/child_process.js:1047:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
npm verb pkgid sportbest@0.1.0
npm verb cwd C:\WORKSPACE\hf\sportbest\modules\front
npm verb Windows_NT 10.0.19041
npm verb argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run-script" "build" "--verbose"
npm verb node v14.9.0
npm verb npm v6.14.8
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sportbest@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sportbest@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 1, true ]
npm timing npm Completed in 40469ms
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\nscarciolla.HFC\AppData\Roaming\npm-cache\_logs\2020-08-31T14_59_30_478Z-debug.log
I tried to unistall node.js and reinstall the latest version. I tried to clear cache, remove node_module directoy and package-lock.json but every was useless.
Every help is appreciated.
Thanks to all