blockchainbean2
blockchainbean2 copied to clipboard
error TS5056: Cannot write file '/home/tony/blockchainbean2/web-app/dist/src/datasources/db.datasource.d.ts' because it would be overwritten by multiple input files.
hey, this is happende after Add Members to the network Let's bring up a new terminal window, and in that terminal, go to the blockchainbean2 directory that we cloned earlier, and start the app in that window with the following command.
blockchainbean2$ cd web-app web-app$ npm start
~/blockchainbean2/web-app$ npm start
[email protected] prestart /home/tony/blockchainbean2/web-app npm run build
[email protected] build /home/tony/blockchainbean2/web-app lb-tsc es2017 --outDir dist
error TS5056: Cannot write file '/home/tony/blockchainbean2/web-app/dist/src/datasources/db.datasource.d.ts' because it would be overwritten by multiple input files.
Found 1 error.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: lb-tsc es2017 --outDir dist
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/tony/.npm/_logs/2019-12-05T17_54_25_976Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prestart: npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prestart script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /home/tony/.npm/_logs/2019-12-05T17_54_25_983Z-debug.log
here is the debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/home/tony/.nvm/versions/node/v8.16.2/bin/node',
1 verbose cli '/home/tony/.nvm/versions/node/v8.16.2/bin/npm',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 verbose lifecycle [email protected]~prestart: unsafe-perm in lifecycle true
7 verbose lifecycle [email protected]~prestart: PATH: /home/tony/.nvm/versions/node/v8.16.2/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/tony/blockchainbean2/web-app/node_modules/.bin:/home/tony/.nvm/versions/node/v8.16.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
8 verbose lifecycle [email protected]~prestart: CWD: /home/tony/blockchainbean2/web-app
9 silly lifecycle [email protected]~prestart: Args: [ '-c', 'npm run build' ]
10 silly lifecycle [email protected]~prestart: Returned: code: 1 signal: null
11 info lifecycle [email protected]~prestart: Failed to exec prestart script
12 verbose stack Error: [email protected] prestart: npm run build
12 verbose stack Exit status 1
12 verbose stack at EventEmitter.npm run build
21 error Exit status 1
22 error Failed at the [email protected] prestart script.
22 error This is probably not a problem with npm. There is likely additional logging output above.
23 verbose exit [ 1, true ]
The way i fixed is by adding the -f
to the command, i now this wont be the perfect way to do it, but it worked