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

Stencil: Nx Stencil generate application or library throwing "implementation is not a function" error. #1138

Open
vishnuskrish opened this issue Oct 14, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@vishnuskrish
Copy link

Describe the bug
When creating a new stencil library or application using $ nx generate @nxext/stencil:app my-app --verbose command, it fails and throw the following error implementation is not a function.

image

To Reproduce
Steps to reproduce the behavior:

  • $ npx create-nx-workspace@latest myorg
  • $ cd myorg
  • $ npm add @nxext/stencil --save
  • nx generate @nxext/stencil:app my-app --verbose
  • code exited with the above error

Expected behavior

  • should create the stencil app or library

Additional context
Add any other context about the problem here.

NX Report complete - copy this into the issue template

Node : 20.17.0
OS : win32-x64
Native Target : x86_64-windows
npm : 10.8.2

nx (global) : 20.0.0
nx : 20.0.0
@nx/js : 20.0.0
@nx/jest : 20.0.0
@nx/eslint : 20.0.0
@nx/workspace : 20.0.0
@nx/angular : 20.0.0
@nx/cypress : 20.0.0
@nx/devkit : 20.0.0
@nx/react : 20.0.0
@nx/storybook : 20.0.0
@nx/web : 20.0.0
@nx/webpack : 20.0.0
typescript : 5.5.4

Registered Plugins:
@nx/js/typescript

@vishnuskrish vishnuskrish added the bug Something isn't working label Oct 14, 2024
@pawel-twardziak
Copy link
Contributor

pawel-twardziak commented Oct 14, 2024

Hi @vishnuskrish This has just got fixed there #1139 and this issue potentially duplicates that one #1137
Try again, the versions 20.0.1 has been released.
And remember to set the preset option (not None because None means --preset=ts) -> #1137 (comment)

@pawel-twardziak
Copy link
Contributor

@vishnuskrish btw next issue you are gonna be faced is that one #1142 - eslint flat config is not yet supported by our libraries. I am currently working on this.

@pawel-twardziak
Copy link
Contributor

@vishnuskrish could you re-check if the issue is still valid? It should get fixed.

@vishnuskrish
Copy link
Author

ok. I will check again. Does the default preset (Typescript starter) works now?

@pawel-twardziak
Copy link
Contributor

@vishnuskrish no, it is not supported yet either for official NX plugins or for @nxext plugins. You must use a preset other than ts

@vishnuskrish
Copy link
Author

@pawel-twardziak I have checked with latest version. and the issue was not occurring.

@pawel-twardziak
Copy link
Contributor

@vishnuskrish happy to hear that :))) can we close this issue then?

@vishnuskrish
Copy link
Author

yes

@pawel-twardziak
Copy link
Contributor

@DominikPieper @edbzn this issue is ready to close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants