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

Store: Environments import path is broken when generating new store #1069

Closed
brandonroberts opened this issue May 15, 2018 · 0 comments
Closed

Comments

@brandonroberts
Copy link
Member

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request

What is the current behavior?

Expected behavior:

Minimal reproduction of the problem with instructions:

Generate a new project
Install @ngrx/store, @ngrx/store-devtools, @ngrx/schematics
Run ng generate @ngrx/schematics:store State --root -m app
Open the /src/app/reducers/index.ts file and note the broken import path for environments/environment

Version of affected browser(s),operating system(s), npm, node and ngrx:

Other information:

With the new project path structure, the project path is returned as /src/app. Since the environments directory is at the same level as app, the import is incorrect when using the project path to get the relative path to the reducers/index.ts file.

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

No branches or pull requests

1 participant