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

Generator produces incorrect code when the user specifies a nested path #110

Open
skulptur opened this issue Sep 26, 2019 · 0 comments
Open

Comments

@skulptur
Copy link
Contributor

skulptur commented Sep 26, 2019

When generating a component directly inside /block or /general, or even with another level of nesting, it will always produce incorrect code due to relative import of '../AbstractComponent'

I suggest we use 'app/component/AbstractComponent' for the sake of simplicity.

Alternatively we could generate the proper path dynamically. If seng-generator doesn't support that, we could consider moving on to a different tool. For example Plop.

@skulptur skulptur changed the title Generator produces incorrect code when the user specifies a path Generator produces incorrect code when the user specifies a nested path Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant