feat(identity-integration): app and pages router #85
Errors 13
Found 13 errors
Annotations
Check failure on line 4 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / TypeCheck
Parameter 'TargetComponent' implicitly has an 'any' type.
Parameter 'TargetComponent' implicitly has an 'any' type.
Raw output
2 | import React from 'react'
3 |
> 4 | export const withGtag = (gaTrackingId?: string) => (TargetComponent) =>
| ^
5 | class WithGtag extends TargetComponent {
6 | static async getInitialProps(context) {
7 | const props = await super.getInitialProps(context)
Check failure on line 6 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / TypeCheck
Parameter 'context' implicitly has an 'any' type.
Parameter 'context' implicitly has an 'any' type.
Raw output
4 | export const withGtag = (gaTrackingId?: string) => (TargetComponent) =>
5 | class WithGtag extends TargetComponent {
> 6 | static async getInitialProps(context) {
| ^
7 | const props = await super.getInitialProps(context)
8 |
9 | if (gaTrackingId) {
Check failure on line 28 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / TypeCheck
Rest parameter 'args' implicitly has an 'any[]' type.
Rest parameter 'args' implicitly has an 'any[]' type.
Raw output
26 | }
27 |
> 28 | static renderDocument(...args) {
| ^
29 | // @ts-ignore
30 | return Document.renderDocument(...args)
31 | }
Check failure on line 5 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / TypeCheck
Could not find a declaration file for module 'react-helmet'. '/home/runner/work/nextjs/nextjs/.yarn/__virtual__/react-helmet-virtual-6ab1933d1f/2/.yarn/berry/cache/react-helmet-npm-6.1.0-20fd5447ff-10.zip/node_modules/react-helmet/lib/Helmet.js' implicitly has an 'any' type.
Could not find a declaration file for module 'react-helmet'. '/home/runner/work/nextjs/nextjs/.yarn/__virtual__/react-helmet-virtual-6ab1933d1f/2/.yarn/berry/cache/react-helmet-npm-6.1.0-20fd5447ff-10.zip/node_modules/react-helmet/lib/Helmet.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/react-helmet` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-helmet';`
Raw output
3 | import { Main } from 'next/document'
4 | import { NextScript } from 'next/document'
> 5 | import { Helmet } from 'react-helmet'
| ^
6 | import Document from 'next/document'
7 | import React from 'react'
8 |
Check failure on line 9 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / TypeCheck
Parameter 'TargetComponent' implicitly has an 'any' type.
Parameter 'TargetComponent' implicitly has an 'any' type.
Raw output
7 | import React from 'react'
8 |
> 9 | export const withHelmet = () => (TargetComponent) =>
| ^
10 | class WithHelmet extends TargetComponent {
11 | static async getInitialProps(context) {
12 | const props = await TargetComponent.getInitialProps(context)
Check failure on line 11 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / TypeCheck
Parameter 'context' implicitly has an 'any' type.
Parameter 'context' implicitly has an 'any' type.
Raw output
9 | export const withHelmet = () => (TargetComponent) =>
10 | class WithHelmet extends TargetComponent {
> 11 | static async getInitialProps(context) {
| ^
12 | const props = await TargetComponent.getInitialProps(context)
13 |
14 | const helmet = Helmet.renderStatic()
Check failure on line 25 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / TypeCheck
Rest parameter 'args' implicitly has an 'any[]' type.
Rest parameter 'args' implicitly has an 'any[]' type.
Raw output
23 | }
24 |
> 25 | static renderDocument(...args) {
| ^
26 | // @ts-ignore
27 | return Document.renderDocument(...args)
28 | }
Check failure on line 4 in packages/next-document-with-icons/src/with-icons.provider.tsx
github-actions / TypeCheck
Parameter 'TargetComponent' implicitly has an 'any' type.
Parameter 'TargetComponent' implicitly has an 'any' type.
Raw output
2 | import React from 'react'
3 |
> 4 | export const withIcons = () => (TargetComponent) =>
| ^
5 | class WithIcons extends TargetComponent {
6 | static async getInitialProps(context) {
7 | const props = await super.getInitialProps(context)
Check failure on line 6 in packages/next-document-with-icons/src/with-icons.provider.tsx
github-actions / TypeCheck
Parameter 'context' implicitly has an 'any' type.
Parameter 'context' implicitly has an 'any' type.
Raw output
4 | export const withIcons = () => (TargetComponent) =>
5 | class WithIcons extends TargetComponent {
> 6 | static async getInitialProps(context) {
| ^
7 | const props = await super.getInitialProps(context)
8 |
9 | props.head.push(
Check failure on line 28 in packages/next-document-with-icons/src/with-icons.provider.tsx
github-actions / TypeCheck
Rest parameter 'args' implicitly has an 'any[]' type.
Rest parameter 'args' implicitly has an 'any[]' type.
Raw output
26 | }
27 |
> 28 | static renderDocument(...args) {
| ^
29 | // @ts-ignore
30 | return Document.renderDocument(...args)
31 | }
Check failure on line 9 in packages/next-document-with-opengraph/src/with-opengraph.provider.tsx
github-actions / TypeCheck
Parameter 'TargetComponent' implicitly has an 'any' type.
Parameter 'TargetComponent' implicitly has an 'any' type.
Raw output
7 |
8 | export const withOpenGraph = ({ image }: OpenGraphProviderOptinos = {}) =>
> 9 | (TargetComponent) =>
| ^
10 | class WithOpenGraph extends TargetComponent {
11 | static async getInitialProps(context) {
12 | const props = await super.getInitialProps(context)
Check failure on line 11 in packages/next-document-with-opengraph/src/with-opengraph.provider.tsx
github-actions / TypeCheck
Parameter 'context' implicitly has an 'any' type.
Parameter 'context' implicitly has an 'any' type.
Raw output
9 | (TargetComponent) =>
10 | class WithOpenGraph extends TargetComponent {
> 11 | static async getInitialProps(context) {
| ^
12 | const props = await super.getInitialProps(context)
13 |
14 | if (image) {
Check failure on line 21 in packages/next-document-with-opengraph/src/with-opengraph.provider.tsx
github-actions / TypeCheck
Rest parameter 'args' implicitly has an 'any[]' type.
Rest parameter 'args' implicitly has an 'any[]' type.
Raw output
19 | }
20 |
> 21 | static renderDocument(...args) {
| ^
22 | // @ts-ignore
23 | return Document.renderDocument(...args)
24 | }