Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Ionic 4 + Stencil custom component: "error TS2304: Cannot find name"

$
0
0

@_oliver wrote:

My Stencil folder is part of the overall Ionic 4 app/project.
The Stencil part works flawless and produces a 100% correct components.d.ts file with global declarations, such as HTMLMyCustomCompElement.

Going by: https://stenciljs.com/docs/typed-components

I should be able to use the components HTML* type in any part of the Ionic 4 app code, right?

vscode thinks it’s cool and shows no errors, in fact it shows proper linkage to components.d.ts when hovering over the type used in the app’s TS file.

Very different to ng which throws an error TS2304: Cannot find name - apparently it can’t find the type?!?

A bug? …or not sufficiently documented? …am I missing something?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>