You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case you have symlink in your app, you can build it only the first time. Each consecutive try leads to
shell.js: internal error
Error: EEXIST, file already exists 'main-page.xml'
at Object.fs.symlinkSync (fs.js:742:18)
at cpdirSyncRecursive (/home/rvladimirov/Work/nativescript-cli/node_modules/shelljs/src/cp.js:76:10)
at cpdirSyncRecursive (/home/rvladimirov/Work/nativescript-cli/node_modules/shelljs/src/cp.js:73:7)
at /home/rvladimirov/Work/nativescript-cli/node_modules/shelljs/src/cp.js:180:9
at Array.forEach (native)
at Object._cp (/home/rvladimirov/Work/nativescript-cli/node_modules/shelljs/src/cp.js:157:11)
at Object.cp (/home/rvladimirov/Work/nativescript-cli/node_modules/shelljs/src/common.js:186:23)
at /home/rvladimirov/Work/nativescript-cli/lib/services/platform-service.js:128:19
at Function.settle (/home/rvladimirov/Work/nativescript-cli/node_modules/fibers/future.js:220:26)
at FiberFuture.Future.wait (/home/rvladimirov/Work/nativescript-cli/node_modules/fibers/future.js:487:10)
Steps to reproduce:
Create project: tns create app1
cd app1
tns platform add android
cd app/app/
ln -s main-page.xml symlinkToMainPage.xml
tns build android // this one will pass
tns build android // this one will fail
This is very important when you are using node_modules in your app, as node_modules dir contains .bin directory with symlinks to actual files.
The issue is not reproducible on Windows.
The text was updated successfully, but these errors were encountered:
Delete dir where app will be copied on prepare. If we do not delete it, on Linux and Mac we receive EEXIST errors for symlinks inside app directory. Symlinks are common scenario when node_modules are used.
Fixes#394
In case you have symlink in your app, you can build it only the first time. Each consecutive try leads to
Steps to reproduce:
tns create app1
cd app1
tns platform add android
cd app/app/
ln -s main-page.xml symlinkToMainPage.xml
tns build android
// this one will passtns build android
// this one will failThis is very important when you are using node_modules in your app, as node_modules dir contains .bin directory with symlinks to actual files.
The issue is not reproducible on Windows.
The text was updated successfully, but these errors were encountered: