Code Monkey home page Code Monkey logo

Comments (8)

NotWoods avatar NotWoods commented on August 12, 2024 1

You may need to reference the dark mode module inside the same script, by doing one of:

import 'dark-mode-toggle'
/// <reference types="dark-mode-toggle" />

from dark-mode-toggle.

tomayac avatar tomayac commented on August 12, 2024

I think this will be resolved once #38 lands. I’ll look into this after the weekend.

from dark-mode-toggle.

aress31 avatar aress31 commented on August 12, 2024

Great news, thanks @tomayac !

from dark-mode-toggle.

tomayac avatar tomayac commented on August 12, 2024

Fixed with #38.

from dark-mode-toggle.

aress31 avatar aress31 commented on August 12, 2024

@tomayac the latest update did not seem to solve this issue for me, please see:

image

Unknown tag <dark-mode-toggle>.
  Check that you've imported the element, and that it's declared on the HTMLElementTagNameMap. If it can't be imported, consider adding it to the 'globalTags' plugin configuration or disabling the 'no-unknown-tag' rule.lit-plugin(no-unknown-tag-name)(2322)

from dark-mode-toggle.

tomayac avatar tomayac commented on August 12, 2024

@NotWoods I was under the assumption the above problem was resolved with #38, and these lines specifically. Is there anything @aress31 needs to do to make the warning go away? Sorry, I'm not a TypeScripter myself.

from dark-mode-toggle.

aress31 avatar aress31 commented on August 12, 2024

I can now confirm that the warning went away when updating eslint-typescript.

from dark-mode-toggle.

tomayac avatar tomayac commented on August 12, 2024

Thanks, @NotWoods, for the help <3 and thanks, @aress31, for confirming this solved your issue.

from dark-mode-toggle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.