Code Monkey home page Code Monkey logo

hello-world-part-four-tutorial's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hello-world-part-four-tutorial's Issues

@alch/alchemy-web3 Not Installed

const { createAlchemyWeb3 } = require("@alch/alchemy-web3");

If this is the "Completed" versions. Then it should be complete and ready to run (except maybe api keys).
The fact that

does not include @alch/alchemy-web3 makes this folder not a complete version of the project.

Please fix.
You are tying to use this to teach newcomers. They can not learn if you do not provide complete examples. They can not be expected to find and fix such problems on their own.

Thank you

code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'

at Object. (/Applications/Development/final try/hello-world-part-four-tutorial/starter-files/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

whenever I initiate the npx start

TypeError: Cannot read properties of undefined (reading 'includes')

Hello,

I am following along with the tutorial however I am getting "TypeError: Cannot read properties of undefined (reading 'includes')" from my localhost:3000 after I ran "npm install @alch/alchemy-web3" in the root directory of my starter-files.
Screen Shot 2022-11-07 at 8 54 05 PM

I am unsure if this is a problem with the code I have written or with the npm package. Is there a way I can turn my localhost back to normal like the below image?
Screen Shot 2022-11-07 at 8 56 29 PM

@alch/alchemy-web3 ^1.3.0 version issue

Here is my package.json config.

{
  "name": "hello-world-part-four",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@alch/alchemy-web3": "^1.3.0",
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "dotenv": "^16.0.0",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-scripts": "4.0.3",
    "web-vitals": "^1.0.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

It will show this error on react client.

截圖 2022-04-07 下午6 07 03

If I change "@alch/alchemy-web3": "^1.3.0", into "@alch/alchemy-web3": "1.1.5", it works fine.

Code doesn't work any more

At least with pnpm, it has various issue. please upgrade it to make it up to date.

For example:

Failed to compile.

../node_modules/.pnpm/@[email protected]/node_modules/@noble/curves/abstract/weierstrass.js 1016:57
Module parse failed: Unexpected token (1016:57)
File was processed with these loaders:
 * ./node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|     const u1 = modN(h * is); // u1 = hs^-1 mod n
|     const u2 = modN(r * is); // u2 = rs^-1 mod n
>     const R = Point.BASE.multiplyAndAddUnsafe(P, u1, u2)?.toAffine(); // R = u1⋅G + u2⋅P
|     if (!R) return false;
|     const v = modN(R.x);

Module parse failed: Unexpected token (152:76)

Failed to compile.

./node_modules/web3-core-method/lib/index.js 152:76
Module parse failed: Unexpected token (152:76)
File was processed with these loaders:

  • ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
    You may need an additional loader to handle the result of these loaders.
    | if (Array.isArray(result)) {
    | return result.map(function (res) {
  return _this.outputFormatter && res ? _this.outputFormatter(res, this?.hexFormat) : res;

| });
| } else {

Hello, I can fix the problem.

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.