timhagn / gatsby-background-image

Lazy-loading React (multi)background-image component with optional support for the blur-up effect.
MIT License
253 stars 49 forks source link

Property 'Tag' does not exist on type 'IntrinsicAttributes...' #159

Closed justinkneff closed 3 years ago

justinkneff commented 3 years ago

Summary

When converting from gatsby-background-image to gbimage-bridge there were places that Tag was used to decide what element was used on it's InstrinsicElements.

 interface IntrinsicElements {
            // HTML
            a: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
            abbr:...

I dont see the property available for the component creation "No overload method matches Tag."

Relevant information

What does not using a Tag cause in differences of rendered DOM?

Environment

 System:
    OS: Windows 10 10.0.19042
    CPU: (16) x64 Intel(R) Core(TM) i9-10885H CPU @ 2.40GHz
  Binaries:
    Node: 14.17.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.14.13 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1023.0), Chromium (91.0.864.67)
  npmPackages:
    gatsby: ^3.6.2 => 3.7.2
    gatsby-background-image: ^1.1.2 => 1.5.3
    gatsby-cli: ^3.9.0 => 3.9.0
    gatsby-plugin-google-fonts: ^1.0.1 => 1.0.1
    gatsby-plugin-google-gtag: ^3.7.0 => 3.7.1
    gatsby-plugin-image: ^1.7.0 => 1.7.1
    gatsby-plugin-lodash: ^4.7.0 => 4.7.1
    gatsby-plugin-manifest: ^3.7.0 => 3.7.1
    gatsby-plugin-polyfill-io: ^1.1.0 => 1.1.0
    gatsby-plugin-react-helmet: ^4.7.0 => 4.7.1
    gatsby-plugin-remove-serviceworker: ^1.0.0 => 1.0.0
    gatsby-plugin-robots-txt: ^1.5.0 => 1.6.2
    gatsby-plugin-sass: ^4.7.0 => 4.7.1
    gatsby-plugin-sharp: ^3.7.0 => 3.7.1
    gatsby-plugin-sitemap: 4.3.1 => 4.3.1
    gatsby-plugin-styled-components: ^4.7.0 => 4.7.1
    gatsby-plugin-ts-config: ^1.0.0 => 1.1.5
    gatsby-plugin-typescript: ^3.7.0 => 3.7.1
    gatsby-plugin-webpack-bundle-analyser-v2: ^1.1.12 => 1.1.22
    gatsby-source-filesystem: ^3.7.0 => 3.7.1
    gatsby-transformer-sharp: ^3.7.0 => 3.7.1
  npmGlobalPackages:
    gatsby-cli: 3.8.0

File contents (if changed)

package.json: N/A

github-actions[bot] commented 3 years ago

Hi there! As @timhagn momentarily is the main contributor to this package, this issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs, though we're open to suggestions on how to get more maintainers! Thank you for your contributions : )!

justinkneff commented 3 years ago

This was more of a question about the documentation though than anything.