Comments (8)
For me it occurs on an abstract class.
Same story...
Angular team, please let us write normal abstract/base classes. This limitation looks ridiculous. It forces me to decorate my abstract class just because it implements OnDestroy
interface.
And even more, compiler emits this error only in normal mode. When I run the prod build, everything's fine.
@Injectable() // 👈 I have to add this for no real reason to satisfy the compiler. why?!
export abstract class LocalStore<TState> extends StoreBase<TState> implements OnDestroy {
ngOnDestroy(): void {
this.complete();
}
}
from stencil-ds-output-targets.
For me it occurs on an abstract class.
from stencil-ds-output-targets.
I ran into this error, I am using 0.0.2 of the output, but my output project has been upgraded to use 10.x of angular..
from stencil-ds-output-targets.
For me it occurs on an abstract class.
Same here.
from stencil-ds-output-targets.
After upgrading from:
{
"@stencil/angular-output-target": "0.0.2",
"@stencil/core": "1.15.0",
"@stencil/sass": "1.3.2"
}
to
{
"@stencil/angular-output-target": "0.0.6",
"@stencil/core": "2.6.0",
"@stencil/sass": "1.4.1"
}
It just works without any workaround 🎉
from stencil-ds-output-targets.
After upgrading from:
{ "@stencil/angular-output-target": "0.0.2", "@stencil/core": "1.15.0", "@stencil/sass": "1.3.2" }to
{ "@stencil/angular-output-target": "0.0.6", "@stencil/core": "2.6.0", "@stencil/sass": "1.4.1" }It just works without any workaround 🎉
I'm using @stencil/angular-output-target v0.2.0, and I am still getting this issue. I get a warning that value-accessor.ts has no selector and "Cannot determine the module for class ValueAccessor in ****! Add ValueAccessor to the NgModule to fix it." Again, this appears to still be an issue.
Is there a goal or anything to eventually update the examples for the stencil-ds-output-targets repo? The examples appear relatively outdated, and the version being used is 0.0.5 for Angular, but it appears that you've recently released 0.2.0. Are there any other breaking changes? Should I downgrade back to 0.0.5 for this to work properly?
My @stencil/core version is 2.8.1 at the moment, btw.
from stencil-ds-output-targets.
I downgraded to 0.0.5, and it's working. I'm sure I must be missing something or doing something wrong, but I'll keep it like this for now until further updates occur.
from stencil-ds-output-targets.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the output targets, please create a new issue and ensure the template is fully filled out.
from stencil-ds-output-targets.
Related Issues (20)
- ts error when adding style and class to a component directly in vue HOT 12
- bug: vue-component-library not usable in a vue3-vite example application => Failed to fetch dynamically imported module HOT 5
- bug: Nested generics have incorrect type information in the Angular output target after a build HOT 5
- feat: Disable SSR flag
- bug: Custom Event do not fire in Vue (missing event addEventListener)
- bug: `vue3` problem with `slot` type error reporting! HOT 2
- bug: 'Namespace components.Components' has no exported member 'IonAccordion'
- At directivesProxyFile the @Component decorator is missing the output event array HOT 4
- bug: [React] when updating the slot content the component looses it's style HOT 2
- bug: proxyInputs errors when called multiple times HOT 1
- bug: Angular can't handle event types in HTML-Templates after issue #4908 is released for Stencil 4.6.0 HOT 10
- bug: React Output Target, incorrect JSX path on generated file HOT 5
- bug: broken codegen for collections of named types in EventEmitter
- bug: Angular Output 'scam' proxies import type 'Component' path HOT 1
- bug: Html attributes not exported in wrapper components HOT 3
- bug: Angular Wrapper doesnt add properties to proxies interface HOT 2
- bug: methods non decorated are available on React component HOT 1
- feat: Support custom tag names HOT 1
- bug: Vue IonAccordionGroup takes value from underlying component HOT 5
- bug: lib/components.ts(6,15): error TS2305: Module '"stencil-library"' has no exported member 'JSX'. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stencil-ds-output-targets.