Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Clean up the problems and error messages when running locally #107

Open
JessePeplinski opened this issue Feb 4, 2022 · 0 comments
Open

Comments

@JessePeplinski
Copy link
Contributor

JessePeplinski commented Feb 4, 2022

gatsby-starter-default@0.1.0 start
npm run develop

gatsby-starter-default@0.1.0 develop
gatsby develop

C:\Users\Jesse\Development\hack-upstate\careersincode.org\node_modules\gatsby-re
cipes\dist\graphql-server\server.js:52
var remarkMdx = require('remark-mdx');
^

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\Jesse\Development\hack-
upstate\careersincode.org\node_modules\remark-mdx\index.js from
C:\Users\Jesse\Development\hack-upstate\careersincode.org\node_modules\gatsby-re
cipes\dist\graphql-server\server.js not supported.
Instead change the require of index.js in C:\Users\Jesse\Development\hack-upstat
e\careersincode.org\node_modules\gatsby-recipes\dist\graphql-server\server.js to
a dynamic import() which is available in all CommonJS modules.
at Object. (C:\Users\Jesse\Development\hack-upstate\careersincode
.org\node_modules\gatsby-recipes\dist\graphql-server\server.js:52:17) {
code: 'ERR_REQUIRE_ESM'
}

info We're shipping new features! For final testing, we're rolling them out
first to a small % of Gatsby users
and your site was automatically chosen as one of them. With your help, we'll
then release them to everyone in the next minor release.

We greatly appreciate your help testing the change. Please report any feedback
good or bad in the umbrella issue. If you do encounter problems, please disable
the flag by setting it to false in your gatsby-config.js like:

flags: {
THE_FLAG: false
}

The following flags were automatically enabled on your site:

  • DEV_SSR · (Umbrella Issue (https://gatsby.dev/dev-ssr-feedback)) · Server Side
    Render (SSR) pages on full reloads during develop. Helps you detect SSR bugs
    and fix them without needing to do full builds.

success open and validate gatsby-configs - 0.378s
success load plugins - 5.528s
success onPreInit - 0.058s
success initialize cache - 0.008s
success copy gatsby files - 0.254s
success onPreBootstrap - 0.081s
success createSchemaCustomization - 0.008s
success Checking for changed pages - 0.001s
success source and transform nodes - 1.174s
success building schema - 0.568s
info Total nodes: 401, SitePage nodes: 1 (use --verbose for breakdown)
success createPages - 0.002s
success Checking for changed pages - 0.000s
success createPagesStatefully - 0.295s
success update schema - 0.028s
success write out redirect data - 0.002s
warn The icon(src/images/hu-logo-small.png) you provided to
'gatsby-plugin-manifest' is not square.
The icons we generate will be square and for the best results we recommend you
provide a square icon.

success Build manifest and related icons - 0.150s
success onPostBootstrap - 0.157s
info bootstrap finished - 27.427s
success onPreExtractQueries - 0.001s
success extract queries from components - 1.350s
success write out requires - 0.172s
success run page queries - 0.057s - 1/1 17.44/s
info
Hi from the Gatsby maintainers! Based on what we see in your site, these coming
features may help you. All of these can be enabled within gatsby-config.js via
flags (samples below)

Preserve webpack's Cache (gatsbyjs/gatsby#28331),
which changes Gatsby's cache clearing behavior to not clear webpack's
cache unless you run "gatsby clean" or delete the .cache folder manually.
Here's how to try it:

module.exports = {
flags: { PRESERVE_WEBPACK_CACHE: true },
plugins: [...]
}


You can now view gatsby-starter-default in the browser.

http://localhost:8000/

View GraphiQL, an in-browser IDE, to explore your site's data and schema

http://localhost:8000/___graphql

Note that the development build is not optimized.
To create a production build, use gatsby build

warn ESLintError:
C:\Users\Jesse\Development\hack-upstate\careersincode.org\src\components\driftch
at.js
1:17 warning 'Component' is defined but never used no-unused-vars

✖ 1 problem (0 errors, 1 warning)

warn ESLintError:
C:\Users\Jesse\Development\hack-upstate\careersincode.org\src\pages\alumni.js
6:8 warning 'JumboButton' is defined but never used

                                                  no-unused-vars

51:8 warning 'carolyn' is defined but never used

                                                  no-unused-vars

53:8 warning 'elina' is defined but never used

                                                  no-unused-vars

54:8 warning 'Fobelia' is defined but never used

                                                  no-unused-vars

56:8 warning 'karen' is defined but never used

                                                  no-unused-vars

62:8 warning 'shantina' is defined but never used

                                                  no-unused-vars

515:19 warning The href attribute requires a valid value to be accessible.
Provide a valid, navigable address as the href value. If you cannot provide a
valid href, but still need the element to resemble a link, use a button and
change it with appropriate styles. Learn more: https://github.com/jsx-eslint/esl
int-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md
jsx-a11y/anchor-is-valid

✖ 7 problems (0 errors, 7 warnings)

warn ESLintError:
C:\Users\Jesse\Development\hack-upstate\careersincode.org\src\pages\apprenticesh
ips.js
22:8 warning 'content' is defined but never used no-unused-vars
24:8 warning 'instructorStyles' is defined but never used no-unused-vars
27:8 warning 'Timeline' is defined but never used no-unused-vars

✖ 3 problems (0 errors, 3 warnings)

warn ESLintError:
C:\Users\Jesse\Development\hack-upstate\careersincode.org\src\pages\contact.js
29:13 warning A form label must be associated with a control
jsx-a11y/label-has-associated-control
40:13 warning A form label must be associated with a control
jsx-a11y/label-has-associated-control
53:13 warning A form label must be associated with a control
jsx-a11y/label-has-associated-control

✖ 3 problems (0 errors, 3 warnings)

warn ESLintError:
C:\Users\Jesse\Development\hack-upstate\careersincode.org\src\pages\index.js
30:8 warning 'blogStyles' is defined but never used no-unused-vars

✖ 1 problem (0 errors, 1 warning)

warn ESLintError:
C:\Users\Jesse\Development\hack-upstate\careersincode.org\src\pages\instructors.
js
6:8 warning 'JumboButton' is defined but never used no-unused-vars

✖ 1 problem (0 errors, 1 warning)

warn ESLintError:
C:\Users\Jesse\Development\hack-upstate\careersincode.org\src\pages\mentors.js
16:3 warning 'CardTitle' is defined but never used no-unused-vars
19:3 warning 'CardBody' is defined but never used no-unused-vars
23:3 warning 'FaEnvelopeSquare' is defined but never used no-unused-vars
24:3 warning 'FaTwitterSquare' is defined but never used no-unused-vars
25:3 warning 'FaLinkedin' is defined but never used no-unused-vars
26:3 warning 'FaGithubSquare' is defined but never used no-unused-vars
27:3 warning 'FaGlobe' is defined but never used no-unused-vars
43:8 warning 'Jason' is defined but never used no-unused-vars

✖ 8 problems (0 errors, 8 warnings)

warn ESLintError:
C:\Users\Jesse\Development\hack-upstate\careersincode.org\src\pages\outcomes.js
6:8 warning 'JumboButton' is defined but never used no-unused-vars

✖ 1 problem (0 errors, 1 warning)

warn ESLintError:
C:\Users\Jesse\Development\hack-upstate\careersincode.org\src\pages\partner.js
8:31 warning 'Button' is defined but never used
no-unused-vars
90:9 warning img elements must have an alt prop, either with meaningful
text, or an empty string for decorative images jsx-a11y/alt-text

✖ 2 problems (0 errors, 2 warnings)

warn ESLintError:
C:\Users\Jesse\Development\hack-upstate\careersincode.org\src\pages\speakers.js
8:3 warning 'Button' is defined but never used no-unused-vars

✖ 1 problem (0 errors, 1 warning)

warn ESLintError:
C:\Users\Jesse\Development\hack-upstate\careersincode.org\src\pages\students.js
12:3 warning 'Card' is defined but never used no-unused-vars
13:3 warning 'CardHeader' is defined but never used no-unused-vars
14:3 warning 'CardImg' is defined but never used no-unused-vars
15:3 warning 'CardTitle' is defined but never used no-unused-vars
16:3 warning 'CardText' is defined but never used no-unused-vars
17:3 warning 'CardDeck' is defined but never used no-unused-vars
18:3 warning 'CardBody' is defined but never used no-unused-vars
19:3 warning 'CardFooter' is defined but never used no-unused-vars
24:3 warning 'FaEnvelopeSquare' is defined but never used no-unused-vars
25:3 warning 'FaTwitterSquare' is defined but never used no-unused-vars
26:3 warning 'FaLinkedin' is defined but never used no-unused-vars
27:3 warning 'FaGithubSquare' is defined but never used no-unused-vars
28:3 warning 'FaGlobe' is defined but never used no-unused-vars
29:3 warning 'FaIdCard' is defined but never used no-unused-vars
30:3 warning 'FaColumns' is defined but never used no-unused-vars
37:3 warning 'faToolbox' is defined but never used no-unused-vars
38:3 warning 'faListAlt' is defined but never used no-unused-vars
43:8 warning 'alumniStyles' is defined but never used no-unused-vars
51:8 warning 'Ariel' is defined but never used no-unused-vars
52:8 warning 'brandy' is defined but never used no-unused-vars
53:8 warning 'brielle' is defined but never used no-unused-vars
54:8 warning 'carolyn' is defined but never used no-unused-vars
55:8 warning 'dominique' is defined but never used no-unused-vars
56:8 warning 'elina' is defined but never used no-unused-vars
57:8 warning 'Fobelia' is defined but never used no-unused-vars
58:8 warning 'jaheal' is defined but never used no-unused-vars
59:8 warning 'karen' is defined but never used no-unused-vars
60:8 warning 'kyle' is defined but never used no-unused-vars
61:8 warning 'latonia' is defined but never used no-unused-vars
62:8 warning 'mel' is defined but never used no-unused-vars
63:8 warning 'sara' is defined but never used no-unused-vars
64:8 warning 'shah' is defined but never used no-unused-vars
65:8 warning 'shantina' is defined but never used no-unused-vars
66:8 warning 'susan' is defined but never used no-unused-vars

✖ 34 problems (0 errors, 34 warnings)

warn ESLintError:
C:\Users\Jesse\Development\hack-upstate\careersincode.org\src\pages\team.js
10:8 warning 'Will' is defined but never used no-unused-vars

✖ 1 problem (0 errors, 1 warning)

success Building development bundle - 44.230s

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant