-
Notifications
You must be signed in to change notification settings - Fork 116
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: Import errors in angular component.ts #481
Comments
@kartikwatwani Thanks for reporting! I transferred this issue to our framework output targets repo as it's an issue with our Angular output target, but did confirm something is not quite right here! As a temporary workaround, you can apply |
Thanks, the patch worked. But will |
If someone wants a stencil starter with angular included by default, they can give try this repo which includes a way to rename the library name and set origin using gulp task. |
I have realized 'auto-define-custom-elements' works for outputTarget:'dist-custom-elements', if we provide
|
Prerequisites
Stencil Version
4.21.0
Current Behavior
I started with Stencil yesterday. Went through the documentation to integrate angular but I am unable to import the web components generated via stencil in
component.ts
ofangular-workspace/projects/(some-more-paths)/stencil-generated/component.ts
, therefore I am unable to runnpm run build
in angular-workspace. It was mentioned in Angular Integration documentation that we don't need to usenpm link
if we are using lerna monorepo but I still tried it because it was giving errors. But still no help. I tried adding paths intsconfig.json
but still no help. So, I felt maybe something with IDE so I tried it on IDX but still errors were present. I then checked with public stencil projects like revogrid and that was also configured like mine so I am not able to find what is causing this. My repo is available here.Expected Behavior
I should be able to run
npm run build
in angular-workspace without import errors instencil-generated/component.ts
.System Info
Steps to Reproduce
I have reproduced in my repo.
Code Reproduction URL
https://github.com/kartikwatwani/inner-growth
Additional Information
No response
The text was updated successfully, but these errors were encountered: