question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Path "/server.ts" already exist

See original GitHub issue

I’m submitting a…


[ x] Bug report  
[ ] Feature request
[ ] Documentation issue or request

In package


[ ] @ng-toolkit/init
[x ] @ng-toolkit/serverless
[ ] @ng-toolkit/universal
[ ] @ng-toolkit/pwa
[ ] @ng-toolkit/firebug

Current behavior

When I run sudo ng add @ng-toolkit/serverless —-provider aws , I am getting the following error:

Skipping installation: Package already installed
<font color="#C4A000">INFO: </font>Project property is set to 'serverlessApp'.
<font color="#CC0000">ERROR: </font>Path "/server.ts" already exist.
<font color="#CC0000">ERROR: </font>If you think that this error shouldn't occur, please fill up bug report here: <font color="#4E9A06">https://github.com/maciejtreder/ng-toolkit/issues/new</font>
<font color="#C4A000">INFO: </font>stacktrace has been sent to tracking system.
Nothing to be done.

Expected behavior

serverless have to be installed

Minimal reproduction of the problem with instructions

Example repository

What is the motivation / use case for changing the behavior?

Environment


Angular version: X.Y.Z


Angular CLI: 7.3.8
Node: 8.10.0
NPM : 3.5.2
OS: linux x64
Angular: 7.2.12



Others:

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

5reactions
alamgirqazicommented, Apr 23, 2019

any update on this?

4reactions
mbrooksoncommented, May 12, 2019

Also seeing this. Theoretically this server.ts file could be removed before running the command as it’s more likely than not just a standard implementation as suggested by the Angular docs, however this package should really ignore it if there is already one IMO.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Path "/server.ts" already exist - - Bountysource
Skipping installation: Package already installed INFO: Project property is set to 'serverlessApp'. ERROR: Path "/server.ts" already exist.
Read more >
Path "/src/app/app.module.ts" already exist - Stack Overflow
I try to create a new angular project (ng new project-name), but it gives me an error (Path "/src/app/app.module.ts" already exist.).
Read more >
Server-side rendering (SSR) with Angular Universal
To create the server-side application module, app.server.module.ts , run the following CLI ... The route comes from the client's request to the server....
Read more >
ts-node - npm
-vvv includes absolute paths to ts-node and typescript installations. ... file already exists, the TypeScript file will be ignored. ts-node ...
Read more >
Node.js — Check If a Path or File Exists - Future Studio
When interacting with the file system, you may want to check whether a file exists on the hard disk at a given path....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found