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

can't resolve enum #29

Closed
chrisdrackett opened this issue Jun 7, 2019 · 2 comments
Closed

can't resolve enum #29

chrisdrackett opened this issue Jun 7, 2019 · 2 comments

Comments

@chrisdrackett
Copy link
Collaborator

I have some enums in my types and after generating my models I get the following error:

/@calm/core/src/models/ItemModel.base.js
Module not found: Can't resolve './ItemTypeEnum.base' in '/@calm/core/src/models'

In ItemModel.base.js I see an unused import:

import { ItemTypeEnumSelector } from './ItemTypeEnum.base'

I wonder if this is suppose to be used below in this file under ItemModelSelector?

Sorry if this is related to #25 I'm still figuring everything out!

@dpnolte
Copy link
Collaborator

dpnolte commented Jun 23, 2019

@chrisdrackett thanks for reporting! I also had the same issue: the import paths for enums were incorrectly generated. In your case, the import path should probably have been './ItemTypeEnum'. Can you check if this is still the case? This should be fixed with #23

@chrisdrackett
Copy link
Collaborator Author

Yep! this is working now 🎉

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

2 participants