Skip to content

Missing or incorrect appPath for freshly created projects #5465

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

Closed
rigor789 opened this issue Jan 11, 2021 · 0 comments · Fixed by #5466
Closed

Missing or incorrect appPath for freshly created projects #5465

rigor789 opened this issue Jan 11, 2021 · 0 comments · Fixed by #5466
Labels

Comments

@rigor789
Copy link
Member

this.$projectConfigService.writeDefaultConfig(projectDir, appId);

After creating a new project based on a template, we write the default config. In some cases, the appPath is different for a template, in those cases we need to update/write the correct appPath to the config.

For example a project created with ns create myNGApp --ng will have a src/main.ts file, and the appPath should be set to src for it to work, but currently it's not set to anything, and defaults to app - causing App entry not found crash.

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

Successfully merging a pull request may close this issue.

1 participant