Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #16

Open
MogicTony opened this issue Dec 5, 2019 · 2 comments

Comments

@MogicTony
Copy link

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

@MogicTony
Copy link
Author

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. (/home/tony/.nvm/versions/node/v8.16.2/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
12 verbose stack at emitTwo (events.js:126:13)
12 verbose stack at EventEmitter.emit (events.js:214:7)
12 verbose stack at ChildProcess. (/home/tony/.nvm/versions/node/v8.16.2/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
12 verbose stack at emitTwo (events.js:126:13)
12 verbose stack at ChildProcess.emit (events.js:214:7)
12 verbose stack at maybeClose (internal/child_process.js:915:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
13 verbose pkgid [email protected]
14 verbose cwd /home/tony/blockchainbean2/web-app
15 verbose Linux 5.0.0-37-generic
16 verbose argv "/home/tony/.nvm/versions/node/v8.16.2/bin/node" "/home/tony/.nvm/versions/node/v8.16.2/bin/npm" "start"
17 verbose node v8.16.2
18 verbose npm v6.4.1
19 error code ELIFECYCLE
20 error errno 1
21 error [email protected] prestart: 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 ]

@MuspelWolf
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants