-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Bug with nx lib creation in converted project #241
Comments
Serving app (with new library used) with command: May be problem in apps/backoffice/src/tsconfig.app.json containing option: Removing this option allow normal app serving and prod-building. May be it is a second bug? PS: I didn't found such option in nx-example apps configs and any apps created in Nx Workspaces created with create-nx-workspace command. |
See #250 |
It should be fixed once we switch to the Angular CLI 1.7. |
@xeax could you try it with Nx 0.8? |
On
My results:
May be I need upgrade angular/cli? |
Yup. You need to upgrade the CLI to 1.7+ |
On
lib added with command: resulting libs/fake-db/index.ts containing: Now it is correct path without any errors. Thank you! Tomorrow I'll try to check "Cannot find module" error. |
Closing this as the issue has been resolved by the CLI team. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
OS: Win
Angular 4 project was converted to Nx Workspace with:
lib added with command:
ng generate lib fake-db --nomodule
resulting libs/fake-db/index.ts containing:
export {FakeDb} from './apps\backoffice\src/fake-db';
Single
\
is error here.May be good solution is to use only "/" in all paths.
PS: And I don't understand such folder structure for new library.
Why ./apps/backoffice/src instead of ./src?
The text was updated successfully, but these errors were encountered: