Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running the minter #5

Open
famictech2000 opened this issue Jan 5, 2022 · 4 comments
Open

Error running the minter #5

famictech2000 opened this issue Jan 5, 2022 · 4 comments

Comments

@famictech2000
Copy link

After running the npm install and then npm start; im getting the following error: Error: Alchemy URL protocol must be one of http, https, ws, or wss. Recieved: undefined

How do I resolve?

@GAG94
Copy link

GAG94 commented Jan 19, 2022

Same here (using node v16.13.2 on macos 10.15.7 Catalina)

This is what npm start returns (in the nft-minter folder):


src/Minter.js
  Line 16:13:  Effect callbacks are synchronous to prevent race conditions. Put the async function inside:

useEffect(() => {
  async function fetchData() {
    // You can await here
    const response = await MyAPI.getData(someId);
    // ...
  }
  fetchData();
}, [someId]); // Or [] if effect doesn't need props or state

Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching  react-hooks/exhaustive-deps
  Line 41:11:  Using target="_blank" without rel="noreferrer" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener                                                                                                                                                                                                                                                                    react/jsx-no-target-blank

src/util/interact.js
  Line 34:13:   Using target="_blank" without rel="noreferrer" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener  react/jsx-no-target-blank
  Line 76:13:   Using target="_blank" without rel="noreferrer" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener  react/jsx-no-target-blank
  Line 87:16:   'loadContract' is defined but never used                                                                                                     no-unused-vars
  Line 92:18:   Expected '===' and instead saw '=='                                                                                                          eqeqeq
  Line 92:39:   Expected '===' and instead saw '=='                                                                                                          eqeqeq
  Line 92:67:   Expected '===' and instead saw '=='                                                                                                          eqeqeq
  Line 100:20:  The object literal notation {} is preferrable                                                                                                no-new-object

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

And this is what loading http://localhost:3000 returns:

Schermata 2022-01-19 alle 17 51 35

@david-speakslow
Copy link

I have the same issue. how to fix it?

@GAG94
Copy link

GAG94 commented Jan 23, 2022

I have the same issue. how to fix it?

In the end, I just tried the same thing the day after and it worked all well.

@david-speakslow
Copy link

The problem was related to the .env file. I tried to manually insert the Keys (Pinata, Alchemy) directly into the code and it works.

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

No branches or pull requests

3 participants