Skip to content

module './node_modules/lit/index.js' does not provide an export named 'ReactiveController' #3872

Answered by tbroyer
anneb asked this question in Q&A
Discussion options

You must be logged in to vote

ReactiveController is a type, so it only makes sense for TypeScript. In vanilla JS you'd use "duck-typing", and if/when you use JSDoc to document your code you could import it as @typedef { import("./node_modules/lit/index").ReactiveController } ReactiveController

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@justinfagnani
Comment options

Answer selected by AndrewJakubowicz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants